1
0
mirror of https://github.com/pooneyy/1Panel-Appstore.git synced 2026-03-18 02:11:04 +08:00

🔧 chore(renovate): update version extraction regex pattern

- modify regex pattern in `renovate-app-version.py` to better handle version strings with zero or more separators
- change pattern from `r'(\d+(?:[\.\-]\d+)+)'` to `r'(\d+(?:[\.\-]*\d+)+)'` to allow zero or more separators between digits
This commit is contained in:
pooneyy 2025-12-06 01:38:13 +08:00
parent 43ab134684
commit 841103f3c2
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:
# 选择最长的匹配项,并统一分隔符为点号