1
0
mirror of https://github.com/pooneyy/1Panel-Appstore.git synced 2026-03-17 23:51:03 +08:00

Merge branch 'config' into localApps

This commit is contained in:
pooneyy 2025-12-06 01:39:10 +08:00
commit cb3cbb1c1e
No known key found for this signature in database

View File

@ -25,7 +25,7 @@ def extract_version_from_string(input_string) -> dict:
original_candidate = candidate
# 从复杂标签中提取包含数字和分隔符的版本号部分
pattern = r'(\d+(?:[\.\-]\d+)+)'
pattern = r'(\d+(?:[\.\-]*\d+)+)'
matches = re.findall(pattern, candidate)
if matches:
# 选择最长的匹配项,并统一分隔符为点号