UNPKG

@stylistic/stylelint-plugin

Version:
11 lines (9 loc) 328 B
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) }