diff --git a/src/utils/CommonUtils.ts b/src/utils/CommonUtils.ts index 22a41ea..dc9bd77 100644 --- a/src/utils/CommonUtils.ts +++ b/src/utils/CommonUtils.ts @@ -310,7 +310,7 @@ export const numberToChinese = (num: any) => { export const trim = (str: string): string => { if (isNotEmpty(str)) { 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 '';