index.js 221 B

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