5.25 匹配规则修改

This commit is contained in:
jl-zhoujl2
2022-05-25 08:55:02 +08:00
parent 1ee9d0eef0
commit 21617e0bc4

View File

@ -310,7 +310,7 @@ export const numberToChinese = (num: any) => {
export const trim = (str: string): string => { export const trim = (str: string): string => {
if (isNotEmpty(str)) { if (isNotEmpty(str)) {
let _str = str.replace(/(^\s*)|(\s*$)/g, ""); let _str = str.replace(/(^\s*)|(\s*$)/g, "");
_str = _str.replace(/[<>|\\/?:*""“”\s\r\n\t]/, ""); _str = _str.replace(/[<>|\\/?:*""“”\s\r\n\t]/g, "");
return _str; return _str;
} }
return ''; return '';