epiphany/node_modules/stylelint/lib/utils/hasLessInterpolation.js
2023-12-09 22:48:07 -08:00

13 lines
314 B
JavaScript

'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);
};