hasPsvInterpolation.cjs 449 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_PSV_INTERPOLATION = /\$\(.+?\)/;
  5. /**
  6. * Check whether a string has postcss-simple-vars interpolation
  7. *
  8. * @param {string} string
  9. * @returns {boolean}
  10. */
  11. function hasPsvInterpolation(string) {
  12. return HAS_PSV_INTERPOLATION.test(string);
  13. }
  14. module.exports = hasPsvInterpolation;