yz3456
2024-05-13 6a33216302b27ecd657e8e53b12286518a56d1a8
1
2
3
4
5
6
7
8
9
'use strict';
 
const rgbRegex = require('rgb-regex');
 
function isRGB(str) {
  return rgbRegex({ exact: true }).test(str);
}
 
module.exports = isRGB;