From 21617e0bc4a24f2e58d4d3f4bae1947666192ccd Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Wed, 25 May 2022 08:55:02 +0800 Subject: [PATCH] =?UTF-8?q?5.25=20=E5=8C=B9=E9=85=8D=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/CommonUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '';