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