mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 12:38:39 -09:00
* add initial unit tests for to-electron-background-color * extract isHexFile to test/testUtils
5 lines
158 B
JavaScript
5 lines
158 B
JavaScript
function isHexColor(color) {
|
|
return /(^#[0-9A-F]{6,8}$)|(^#[0-9A-F]{3}$)/i.test(color); // https://regex101.com/
|
|
}
|
|
|
|
module.exports.isHexColor = isHexColor;
|