This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
'use strict';
|
|
|
|
const hexRegex = require('hex-color-regex');
|
|
|
|
function isHex(str) {
|
|
return hexRegex({ exact: true }).test(str);
|
|
}
|
|
|
|
module.exports = isHex;
|