Skip to content
No description or website provided.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
README.md
index.js
package-lock.json
package.json
test.js

README.md

Build Status tippin.me Donate.Paypal Donate.Coffee Donate.Patreon

Regex hexColor ?

Regular expression for matching a hexcolor

Install

$ npm install --save regex-hexcolor

Usage

const regexHex = require(regex-hexcolor);
const fullHex = "#FFFFFF";
const hex = "#FFF";

regexHex.test(fullHex);
regexHex.test(hex);

License

MIT © James Perkins

You can’t perform that action at this time.