5.25 匹配规则修改
This commit is contained in:
@ -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 '';
|
||||||
|
Reference in New Issue
Block a user