feat(plugin): 兼容 alpha 版本并更新插件版本限制
- 在版本比较器中增加对 alpha 版本号的兼容性处理,现在可以正确解析如 `0.10.0-alpha-1` 格式的版本。
This commit is contained in:
committed by
Windpicker-owo
parent
7dca70b057
commit
bca9747691
@@ -54,6 +54,7 @@ class VersionComparator:
|
||||
|
||||
# 移除snapshot部分
|
||||
normalized = re.sub(r"-snapshot\.\d+", "", version.strip())
|
||||
normalized = re.sub(r"-alpha\-\d+", "", version.strip())
|
||||
|
||||
# 确保版本号格式正确
|
||||
if not re.match(r"^\d+(\.\d+){0,2}$", normalized):
|
||||
|
||||
Reference in New Issue
Block a user