10 lines
155 B
JavaScript
10 lines
155 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const hslaRegex = require('hsla-regex');
|
||
|
|
||
|
function isHSLA(str) {
|
||
|
return hslaRegex({ exact: true }).test(str);
|
||
|
}
|
||
|
|
||
|
module.exports = isHSLA;
|