perf: 正则提取文本,

This commit is contained in:
archer
2023-03-26 10:31:13 +08:00
parent da31ef286b
commit 1cbcc62494
3 changed files with 10 additions and 13 deletions

View File

@@ -102,7 +102,9 @@ const ImportDataModal = ({
}
})
)
).join('\n');
)
.join('\n')
.replace(/\n+/g, '\n');
setFileText(fileTexts);
} catch (error: any) {
console.log(error);