UNPKG

auspice

Version:

Web app for visualizing pathogen evolution

10 lines (7 loc) 254 B
'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; }