@harbortouch/skytab-analytics-report-utils 0.29.0 → 0.30.0
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.
|
@@ -53,7 +53,7 @@ var ExcelExporter = class {
|
|
|
53
53
|
const workbook = new import_exceljs.default.Workbook();
|
|
54
54
|
const usedNames = /* @__PURE__ */ new Set();
|
|
55
55
|
for (const [sectionIndex, section] of content.sections.entries()) {
|
|
56
|
-
let sheetName = (section.title || `Sheet${sectionIndex + 1}`).slice(0, 31);
|
|
56
|
+
let sheetName = (section.title || `Sheet${sectionIndex + 1}`).replace(/[*?:\\/[\]]/g, "-").slice(0, 31);
|
|
57
57
|
if (usedNames.has(sheetName.toLowerCase())) {
|
|
58
58
|
let suffix = 2;
|
|
59
59
|
let candidate = `${sheetName.slice(0, 28)}_${suffix}`;
|
|
@@ -19,7 +19,7 @@ var ExcelExporter = class {
|
|
|
19
19
|
const workbook = new ExcelJS.Workbook();
|
|
20
20
|
const usedNames = /* @__PURE__ */ new Set();
|
|
21
21
|
for (const [sectionIndex, section] of content.sections.entries()) {
|
|
22
|
-
let sheetName = (section.title || `Sheet${sectionIndex + 1}`).slice(0, 31);
|
|
22
|
+
let sheetName = (section.title || `Sheet${sectionIndex + 1}`).replace(/[*?:\\/[\]]/g, "-").slice(0, 31);
|
|
23
23
|
if (usedNames.has(sheetName.toLowerCase())) {
|
|
24
24
|
let suffix = 2;
|
|
25
25
|
let candidate = `${sheetName.slice(0, 28)}_${suffix}`;
|