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

14 lines
314 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
const HAS_LESS_INTERPOLATION = /@\{.+?\}/;
/**
* Check whether a string has less interpolation
*
* @param {string} string
* @return {boolean} If `true`, a string has less interpolation
*/
module.exports = function hasLessInterpolation(string) {
return HAS_LESS_INTERPOLATION.test(string);
};