150149ca36d7589a48ec8a59edfae9d0955fc56adc4dbb1c6f4db783e811b8b369b77a9fc8e28c7c72ec28698476530cb2369dc9633853f1f1ead0f1605ca6 262 B

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