fix 搜索匹配Bug
This commit is contained in:
@ -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:
|
||||
"""
|
||||
|
Reference in New Issue
Block a user