Files
ccszjs/node_modules/stylelint/lib/utils/hasLessInterpolation.mjs
renjianbo 12ccebc477 sec
2026-07-18 16:31:27 +08:00

12 lines
297 B
JavaScript

const HAS_LESS_INTERPOLATION = /@\{.+?\}/;
/**
* Check whether a string has less interpolation
*
* @param {string} string
* @returns {boolean} If `true`, a string has less interpolation
*/
export default function hasLessInterpolation(string) {
return HAS_LESS_INTERPOLATION.test(string);
}