@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.
- package/CHANGELOG.md +8 -0
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +17 -0
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +17 -0
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -48
- package/src/template.js +17 -0
|
@@ -9419,6 +9419,23 @@ function evalExp(str, nameSpace, helper, ignorePrefix) {
|
|
|
9419
9419
|
str = str.replace(value, singleSpace);
|
|
9420
9420
|
});
|
|
9421
9421
|
}
|
|
9422
|
+
if (exp.test(str)) {
|
|
9423
|
+
let insideBraces = false;
|
|
9424
|
+
let outputString = '';
|
|
9425
|
+
for (let i = 0; i < str.length; i++) {
|
|
9426
|
+
if (str[i + ''] === '$' && str[i + 1] === '{') {
|
|
9427
|
+
insideBraces = true;
|
|
9428
|
+
}
|
|
9429
|
+
else if (str[i + ''] === '}') {
|
|
9430
|
+
insideBraces = false;
|
|
9431
|
+
}
|
|
9432
|
+
outputString += (str[i + ''] === '"' && !insideBraces) ? '\\"' : str[i + ''];
|
|
9433
|
+
}
|
|
9434
|
+
str = outputString;
|
|
9435
|
+
}
|
|
9436
|
+
else {
|
|
9437
|
+
str = str.replace(/\\?"/g, '\\"');
|
|
9438
|
+
}
|
|
9422
9439
|
return str.replace(LINES, '').replace(DBL_QUOTED_STR, '\'$1\'').replace(exp,
|
|
9423
9440
|
// eslint-disable-next-line
|
|
9424
9441
|
(match, cnt, offset, matchStr) => {
|