escape-template-element-raw.js 132 B

123456
  1. 'use strict';
  2. module.exports = string => string.replace(
  3. /(?<=(?:^|[^\\])(?:\\\\)*)(?<symbol>(?:`|\$(?={)))/g,
  4. '\\$<symbol>',
  5. );