blurInterpolation.cjs 381 B

1234567891011121314
  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. /**
  5. * @param {string} source
  6. * @param {string} [blurChar]
  7. * @returns {string}
  8. */
  9. function blurInterpolation(source, blurChar = ' ') {
  10. return source.replace(/[#@{}]+/g, blurChar);
  11. }
  12. module.exports = blurInterpolation;