hasScssInterpolation.js 194 B

12345678910
  1. 'use strict';
  2. /**
  3. * Check whether a string has scss interpolation
  4. *
  5. * @param {string} string
  6. */
  7. module.exports = function hasScssInterpolation(string) {
  8. return /#\{.+?\}/.test(string);
  9. };