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