blob: 110bafe1b805bf09adabe82c5d90a1724888d7f9 [file] [log] [blame]
'use strict';
const hexRegex = require('hex-color-regex');
function isHex(str) {
return hexRegex({ exact: true }).test(str);
}
module.exports = isHex;