perf: 正则提取文本,
This commit is contained in:
@@ -102,7 +102,9 @@ const ImportDataModal = ({
|
||||
}
|
||||
})
|
||||
)
|
||||
).join('\n');
|
||||
)
|
||||
.join('\n')
|
||||
.replace(/\n+/g, '\n');
|
||||
setFileText(fileTexts);
|
||||
} catch (error: any) {
|
||||
console.log(error);
|
||||
|
||||
Reference in New Issue
Block a user