mirror of
https://github.com/imgyh/tiktok.git
synced 2025-04-06 00:47:55 +08:00
fix(tiktok): 修改文件名匹配正则表达式
This commit is contained in:
parent
2496ccd90c
commit
8ce13c0d72
@ -42,7 +42,7 @@ class Utils(object):
|
||||
替换非法字符,缩短字符长度,使其能成为文件名
|
||||
"""
|
||||
# 匹配 汉字 字母 数字 空格
|
||||
match = "([0-9A-Za-z\u4e00-\u9fa5 #_-]+)"
|
||||
match = "([0-9A-Za-z\u4e00-\u9fa5]+)"
|
||||
|
||||
result = re.findall(match, filenamestr)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user