perf: 保持数据原样

This commit is contained in:
archer
2023-04-10 21:08:43 +08:00
parent 7f26b31f53
commit 6a2b34cb92
2 changed files with 1 additions and 9 deletions

View File

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