aijinhui
2023-10-09 fe81b5844ad478a1b909026c9a0b1da6aacfc78f
1
2
3
4
5
6
7
8
9
'use strict';
 
const hslaRegex = require('hsla-regex');
 
function isHSLA(str) {
  return hslaRegex({ exact: true }).test(str);
}
 
module.exports = isHSLA;