9 lines
155 B
JavaScript
9 lines
155 B
JavaScript
'use strict';
|
|
|
|
const rgbaRegex = require('rgba-regex');
|
|
|
|
function isRgba(str) {
|
|
return rgbaRegex({ exact: true }).test(str);
|
|
}
|
|
|
|
module.exports = isRgba;
|