mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-22 13:20:23 +08:00
fix: Russian records cannot be exported to Excel file (#32)
This commit is contained in:
parent
89a0553c59
commit
49c1685e5e
@ -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",
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user