yz3456
2024-07-21 6669c680f79663fc220935d61c3f3f6eee078e7c
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;