diff --git a/build_app.spec b/build_app.spec index b8734c6..282bc1e 100644 --- a/build_app.spec +++ b/build_app.spec @@ -3,7 +3,7 @@ # 本文件用于打包 MacOS 应用 # pyinstaller --clean --noconfirm build_app.spec -version = '0.6.11' +version = '0.6.12' block_cipher = None diff --git a/lanzou/api/utils.py b/lanzou/api/utils.py index aa4f5ca..ac6727b 100644 --- a/lanzou/api/utils.py +++ b/lanzou/api/utils.py @@ -161,8 +161,8 @@ def is_name_valid(filename: str) -> bool: def is_file_url(share_url: str) -> bool: """判断是否为文件的分享链接""" - base_pat = r'https?://(\w[-\w]*\.)?lanzou[a-z].com/.+' - user_pat = r'https?://(\w[-\w]*\.)?lanzou[a-z].com/i[a-zA-Z0-9]{5,}(\?webpage=[a-zA-Z0-9]+?)?/?' # 普通用户 URL 规则 + base_pat = r'https?://(\w[-\w]*\.)?(lanzou[a-z]|lan\w+)\.com/.+' + user_pat = r'https?://(\w[-\w]*\.)?(lanzou[a-z]|lan\w+)\.com/i[a-zA-Z0-9]{5,}(\?webpage=[a-zA-Z0-9]+?)?/?' # 普通用户 URL 规则 if not re.fullmatch(base_pat, share_url): return False elif re.fullmatch(user_pat, share_url): diff --git a/lanzou/gui/__init__.py b/lanzou/gui/__init__.py index 1e82f0f..5329450 100644 --- a/lanzou/gui/__init__.py +++ b/lanzou/gui/__init__.py @@ -1 +1 @@ -version = '0.6.11' +version = '0.6.12'