UNPKG

@stylistic/stylelint-plugin

Version:
12 lines (10 loc) 287 B
const HAS_LESS_INTERPOLATION = /@\{.+?\}/ /** * Check whether a string has less interpolation * * @param {string} string * @return {boolean} If `true`, a string has less interpolation */ export function hasLessInterpolation (string) { return HAS_LESS_INTERPOLATION.test(string) }