mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 18:11:05 +03:30
10 lines
254 B
JavaScript
Vendored
10 lines
254 B
JavaScript
Vendored
'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;
|
|
}
|