fix: time conf

This commit is contained in:
archer
2023-06-17 21:53:04 +08:00
parent 00c93a63cd
commit 2b93ae2d00
3 changed files with 3 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ export const modelServiceToolMap: Record<
};
/* delete invalid symbol */
const simplifyStr = (str: string) =>
const simplifyStr = (str = '') =>
str
.replace(/\n+/g, '\n') // 连续空行
.replace(/[^\S\r\n]+/g, ' ') // 连续空白内容