From a116b3359ce544f0fdbe8b284e67c80353477f61 Mon Sep 17 00:00:00 2001 From: aoxuan Date: Thu, 27 Feb 2025 16:04:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8E=89=E8=90=BD?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=AD=A3=E5=88=99=E8=A1=A8=E8=BE=BE=E5=BC=8F?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=BB=9F=E8=AE=A1=E6=97=B6=E9=97=B4=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)