hasLessInterpolation.js 258 B

1234567891011
  1. 'use strict';
  2. /**
  3. * Check whether a string has less interpolation
  4. *
  5. * @param {string} string
  6. * @return {boolean} If `true`, a string has less interpolation
  7. */
  8. module.exports = function hasLessInterpolation(string) {
  9. return /@\{.+?\}/.test(string);
  10. };