fix 搜索匹配Bug

This commit is contained in:
jxxghp
2023-07-12 21:49:35 +08:00
parent 0900ab4891
commit 41bc1a9d4d
2 changed files with 15 additions and 3 deletions

View File

@ -169,6 +169,15 @@ class StringUtils:
else:
return [StringUtils.clear(x) for x in text]
@staticmethod
def clear_upper(text: str) -> str:
"""
去除特殊字符,同时大写
"""
if not text:
return ""
return StringUtils.clear(text).upper().strip()
@staticmethod
def str_filesize(size: Union[str, float, int], pre: int = 2) -> str:
"""