UNPKG

tripledoc

Version:

Library to read, create and update documents on a Solid Pod

10 lines (7 loc) 221 B
'use strict'; module.exports = function rgbRegex(options) { options = options || {}; return options.exact ? /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/ : /rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)/ig; }