Nattiden 2 months ago
parent
commit
48b3dd7089
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Actions/minecraft_version.py
  2. 1 1
      Project/modules/minecraft_versions.py

+ 1 - 1
Actions/minecraft_version.py

@@ -6,7 +6,7 @@ from typing import Optional, TypedDict, Literal
 from logging import Logger
 
 # region 版本模式定义
-DEVELOP_VERSION_PATTERN = re.compile(r'^(?P<major>[\d.]+)-(?P<type>[a-zA-Z]+)-?(?P<index>\d)+$')
+DEVELOP_VERSION_PATTERN = re.compile(r'^(?P<major>[\d.]+)-(?P<type>[a-zA-Z]+)-?(?P<index>\d+)$')
 "开发版本号模式"
 RELEASE_PATTERN = re.compile(r'^\d{1,2}\.\d+(\.\d+)?$')
 "正式版本号模式"

+ 1 - 1
Project/modules/minecraft_versions.py

@@ -9,7 +9,7 @@ from homepagebuilder.core.types import Context
 from homepagebuilder.core.utils.event import listen_event as on
 
 # region 版本模式定义
-DEVELOP_VERSION_PATTERN = re.compile(r'^(?P<major>[\d.]+)-(?P<type>[a-zA-Z]+)-?(?P<index>\d)+$')
+DEVELOP_VERSION_PATTERN = re.compile(r'^(?P<major>[\d.]+)-(?P<type>[a-zA-Z]+)-?(?P<index>\d+)$')
 "开发版本号模式"
 RELEASE_PATTERN = re.compile(r'^\d{1,2}\.\d+(\.\d+)?$')
 "正式版本号模式"