index.js 259 B

12345678910
  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. }