perf: csv导入导出

This commit is contained in:
archer
2023-04-10 20:39:27 +08:00
parent c1d3a46dc7
commit 2a597964a2
9 changed files with 66 additions and 34 deletions

View File

@@ -76,5 +76,5 @@ export const formatVector = (vector: number[]) => {
* 字符串清理,替换换行符号
*/
export const clearStrLineBreak = (str: string) => {
return str.replace(/\n/g, '\n').replace(/\n/g, '\\n').trim();
return str.replace(/\n+/g, '\n').replace(/\n/g, '\\n').trim();
};