10 lines
150 B
JavaScript
10 lines
150 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const hslRegex = require('hsl-regex');
|
||
|
|
||
|
function isHSL(str) {
|
||
|
return hslRegex({ exact: true }).test(str);
|
||
|
}
|
||
|
|
||
|
module.exports = isHSL;
|