Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 941 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 941 Bytes

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