securityos/node_modules/stylelint/lib/utils/hasPsvInterpolation.js

13 lines
263 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
const HAS_PSV_INTERPOLATION = /\$\(.+?\)/;
/**
* Check whether a string has postcss-simple-vars interpolation
*
* @param {string} string
*/
module.exports = function hasPsvInterpolation(string) {
return HAS_PSV_INTERPOLATION.test(string);
};