@syncfusion/ej2-base 24.2.3 → 24.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9539,6 +9539,23 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
9539
9539
  str = str.replace(value, singleSpace);
9540
9540
  });
9541
9541
  }
9542
+ if (exp.test(str)) {
9543
+ var insideBraces = false;
9544
+ var outputString = '';
9545
+ for (var i = 0; i < str.length; i++) {
9546
+ if (str[i + ''] === '$' && str[i + 1] === '{') {
9547
+ insideBraces = true;
9548
+ }
9549
+ else if (str[i + ''] === '}') {
9550
+ insideBraces = false;
9551
+ }
9552
+ outputString += (str[i + ''] === '"' && !insideBraces) ? '\\"' : str[i + ''];
9553
+ }
9554
+ str = outputString;
9555
+ }
9556
+ else {
9557
+ str = str.replace(/\\?"/g, '\\"');
9558
+ }
9542
9559
  return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp,
9543
9560
  // eslint-disable-next-line
9544
9561
  function (match, cnt, offset, matchStr) {