@progress/kendo-spreadsheet-common 1.2.6-develop.3 → 1.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/dist/index-esm.js CHANGED
@@ -21,7 +21,7 @@ function displaySheet(sheet) {
21
21
  if (/^[a-z_][a-z0-9_]*$/i.test(sheet)) {
22
22
  return sheet;
23
23
  }
24
- return "'" + sheet.replace(/\x27/g, "\\'") + "'";
24
+ return "'" + sheet.replace(/\\/g, "\\\\").replace(/\x27/g, "\\'") + "'";
25
25
  }
26
26
  function displayRef(sheet, row, col, rel) {
27
27
  let aa = "";
@@ -5721,7 +5721,7 @@ class FormulaContext {
5721
5721
  if (/^[a-z_][a-z0-9_]*$/i.test(val)) {
5722
5722
  return val;
5723
5723
  }
5724
- return "'" + val.replace(/\x27/g, "\\'") + "'";
5724
+ return "'" + val.replace(/\\/g, "\\\\").replace(/\x27/g, "\\'") + "'";
5725
5725
  }
5726
5726
  }
5727
5727
 
@@ -21022,7 +21022,7 @@ async function readWorkbook(zip, workbook, progress) {
21022
21022
  let name = attrs.name;
21023
21023
  if (name !== "_xlnm._FilterDatabase") {
21024
21024
  if (sheet) {
21025
- name = "'" + sheet.replace(/\'/g, "\\'") + "'!" + name;
21025
+ name = "'" + sheet.replace(/\\/g, "\\\\").replace(/\'/g, "\\'") + "'!" + name;
21026
21026
  }
21027
21027
  withErrorLog(sheet, null, function() {
21028
21028
  workbook.defineName(name, text, bool(attrs.hidden));
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@
22
22
  if (/^[a-z_][a-z0-9_]*$/i.test(sheet)) {
23
23
  return sheet;
24
24
  }
25
- return "'" + sheet.replace(/\x27/g, "\\'") + "'";
25
+ return "'" + sheet.replace(/\\/g, "\\\\").replace(/\x27/g, "\\'") + "'";
26
26
  }
27
27
  function displayRef(sheet, row, col, rel) {
28
28
  let aa = "";
@@ -5722,7 +5722,7 @@
5722
5722
  if (/^[a-z_][a-z0-9_]*$/i.test(val)) {
5723
5723
  return val;
5724
5724
  }
5725
- return "'" + val.replace(/\x27/g, "\\'") + "'";
5725
+ return "'" + val.replace(/\\/g, "\\\\").replace(/\x27/g, "\\'") + "'";
5726
5726
  }
5727
5727
  }
5728
5728
 
@@ -21023,7 +21023,7 @@
21023
21023
  let name = attrs.name;
21024
21024
  if (name !== "_xlnm._FilterDatabase") {
21025
21025
  if (sheet) {
21026
- name = "'" + sheet.replace(/\'/g, "\\'") + "'!" + name;
21026
+ name = "'" + sheet.replace(/\\/g, "\\\\").replace(/\'/g, "\\'") + "'!" + name;
21027
21027
  }
21028
21028
  withErrorLog(sheet, null, function() {
21029
21029
  workbook.defineName(name, text, bool(attrs.hidden));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-spreadsheet-common",
3
3
  "description": "Kendo UI platform-independent Spreadsheet library",
4
- "version": "1.2.6-develop.3",
4
+ "version": "1.2.6",
5
5
  "keywords": [
6
6
  "Kendo UI"
7
7
  ],