regex-theme-color 0 travis-ci grunt npm

Check HTML has a valid theme-color meta tag

NPM version Build Status Dependency Status

Regex for checking HTML has a valid theme-color meta tag.

Install

$ npm install --save regex-theme-color

Usage

var regexThemeColor = require('regex-theme-color');

regexThemeColor().test('<meta name="theme-color" content="#3372DF">');
//=> true

regexThemeColor().test('<meta   name="theme-color" content="#3372DF" >');
//=> true

regexThemeColor().test('<meta   name="theme-color" content=\'#3372DF\' >');
//=> true

regexThemeColor().test('<meta name="">');
//=> false

License

MIT © Addy Osmani

Related Repositories

regex-theme-color

regex-theme-color

Check HTML has a valid theme-color meta tag ...


Top Contributors

addyosmani arthurvr

Dependencies

package version
dev grunt-cli ^0.1.13
grunt-contrib-jshint ^0.10.0
grunt-contrib-nodeunit ^0.4.1
grunt-contrib-watch ^0.6.1
load-grunt-tasks ^1.0.0
time-grunt ^1.0.0
grunt-mocha-cli ^1.11.0
jshint-stylish ^1.0.0

Releases

-   v0.1.1 zip tar
-   v0.1.0 zip tar