katoikia-app/web-ui/web-react/node_modules/hsla-regex/index.js

10 lines
254 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00: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;
}