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