1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/hsla-regex/index.js

10 lines
254 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
'use strict';
module.exports = function hslaRegex(options) {
options = options || {};
return options.exact ?
/^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)$/ :
/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(\d*(?:\.\d+)?)\)/ig;
}