regex-theme-color 0 travis-ci grunt npm

Check HTML has a valid theme-color meta tag

3 years after

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

rainbow

rainbow

Simple syntax highlighting library written in javascript ...

colout

colout

Color text streams with this simple command ...

XcodeBoost

XcodeBoost

An Xcode plugin that aims to make altering and inspecting code quick and easy. ...

CreditCardEntry

CreditCardEntry

Smooth UI for Credit Card Entry on Android device, regex check for supported cre ...

SublimeTodoReview

SublimeTodoReview

A SublimeText plugin for reviewing todo (and other) comments within your code. ...


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