ran npm run tdd
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
module.exports = hexToRGB = hex => {
|
||||
const hexToRGB = hex => {
|
||||
let alpha = false,
|
||||
h = hex.slice(hex.startsWith('#') ? 1 : 0);
|
||||
if (h.length === 3) h = [...h].map(x => x + x).join('');
|
||||
@ -16,4 +16,5 @@ return (
|
||||
(alpha ? `, ${h & 0x000000ff}` : '') +
|
||||
')'
|
||||
);
|
||||
};
|
||||
};
|
||||
module.exports = hexToRGB
|
||||
Reference in New Issue
Block a user