hasScssInterpolation.cjs 438 B

1234567891011121314151617
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. const HAS_SCSS_INTERPOLATION = /#\{.+?\}/s;
  5. /**
  6. * Check whether a string has scss interpolation
  7. *
  8. * @param {string} string
  9. * @returns {boolean}
  10. */
  11. function hasScssInterpolation(string) {
  12. return HAS_SCSS_INTERPOLATION.test(string);
  13. }
  14. module.exports = hasScssInterpolation;