diff --git a/app/core/config.py b/app/core/config.py index fb64084..fe1db9b 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -522,7 +522,7 @@ class AppConfig: if current_stage: item_match: List[str] = re.findall( - r"([\u4e00-\u9fa5A-Za-z0-9\-]+)\s*:\s*([\d,]+)(?:\s*\(\+[\d,]+\))?", line + r"^(?!\[)([\u4e00-\u9fa5A-Za-z0-9\-]+)\s*:\s*([\d,]+)(?:\s*\(\+[\d,]+\))?", line, re.M ) for item, total in item_match: # 解析数值时去掉逗号 (如 2,160 -> 2160)