UNPKG

@stylistic/stylelint-plugin

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