refactor:remove_cache_info

This commit is contained in:
guorong.zheng 2024-11-27 18:17:12 +08:00
parent 654b6fc5f1
commit ba155206e1

View file

@ -507,7 +507,7 @@ def remove_cache_info(str):
"""
Remove the cache info from the string
"""
return re.sub(r"cache:.*|\-cache:.*", "", str)
return re.sub(r"[^a-zA-Z\u4e00-\u9fa5\$]?cache:.*", "", str)
def resource_path(relative_path, persistent=False):