Skip to content

Commit

Permalink
fix: Russian records cannot be exported to Excel file (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
biuuu committed Sep 24, 2023
1 parent 89a0553 commit 49c1685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "star-rail-warp-export",
"version": "0.1.3",
"version": "0.1.4",
"main": "./dist/electron/main/main.js",
"author": "biuuu <https://github.com/biuuu>",
"homepage": "https://github.com/biuuu/star-rail-warp-export",
Expand Down
2 changes: 1 addition & 1 deletion src/main/excel.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const start = async () => {
const workbook = new ExcelJS.Workbook()
for (let [key, value] of data.result) {
const name = data.typeMap.get(key)
const sheet = workbook.addWorksheet(name, {views: [{state: 'frozen', ySplit: 1}]})
const sheet = workbook.addWorksheet(name.replace(/[*?:\/\\]/g, ' '), {views: [{state: 'frozen', ySplit: 1}]})
let width = [24, 14, 8, 8, 8, 8, 8]
if (!data.lang.includes('zh-')) {
width = [24, 32, 16, 12, 12, 12, 8]
Expand Down

0 comments on commit 49c1685

Please sign in to comment.