refactor(app): 优化关卡掉落物品正则匹配

This commit is contained in:
2025-04-16 16:58:22 +08:00
parent 986061dc97
commit e8d592ae76

View File

@@ -1368,7 +1368,7 @@ class AppConfig(GlobalConfig):
# 如果已经找到了关卡,处理掉落物
if current_stage:
item_match: List[str] = re.findall(
r"^(?!\[)([\u4e00-\u9fa5A-Za-z0-9\-]+)\s*:\s*([\d,]+)(?:\s*\(\+[\d,]+\))?",
r"^(?!\[)(\S+?)\s*:\s*([\d,]+)(?:\s*\(\+[\d,]+\))?",
line,
re.M,
)