@stylistic/stylelint-plugin
Version:
A collection of stylistic/formatting Stylelint rules
11 lines (9 loc) • 328 B
JavaScript
const HAS_LESS_INTERPOLATION = /@\{.+?\}/u
/**
* Checks whether a string has Less interpolation.
* @param {string} string - The string to check.
* @returns {boolean} True if the string has Less interpolation, false otherwise.
*/
export function hasLessInterpolation (string) {
return HAS_LESS_INTERPOLATION.test(string)
}