index.js 259 B

123456789
  1. 'use strict';
  2. module.exports = function hslRegex(options) {
  3. options = options || {};
  4. return options.exact ?
  5. /^hsl\(\s*(\d+)\s*,\s*(\d*(?:\.\d+)?%)\s*,\s*(\d*(?:\.\d+)?%)\)$/ :
  6. /hsl\(\s*(\d+)\s*,\s*(\d*(?:\.\d+)?%)\s*,\s*(\d*(?:\.\d+)?%)\)/ig;
  7. }