hasLessInterpolation.cjs 480 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_LESS_INTERPOLATION = /@\{.+?\}/;
  5. /**
  6. * Check whether a string has less interpolation
  7. *
  8. * @param {string} string
  9. * @returns {boolean} If `true`, a string has less interpolation
  10. */
  11. function hasLessInterpolation(string) {
  12. return HAS_LESS_INTERPOLATION.test(string);
  13. }
  14. module.exports = hasLessInterpolation;