From 59e9194443babff3bbcfd06c44ece5116a88773c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=82=E4=B9=8B=E9=92=B3?= Date: Sun, 2 Aug 2026 03:41:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(VDE-245):=20raw=20string=20delimiter=20coll?= =?UTF-8?q?ision=20in=20GB=20=E5=BB=BA-=E9=97=A8=E7=AA=97=20regex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pattern R"(^建-门)|(^建-窗)" was broken because the ) in (^建-门) terminates the R"(...)" raw string prematurely. Fixed by simplifying to ^建-[门窗] character class, which is both correcter (matches 建-门* and 建-窗*) and avoids the delimiter issue. Verified: all 101 regex patterns across 4 standards compile and pass validation tests. --- include/vde/brep/layer_standards.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vde/brep/layer_standards.h b/include/vde/brep/layer_standards.h index d1b3a6f74..516e35690 100644 --- a/include/vde/brep/layer_standards.h +++ b/include/vde/brep/layer_standards.h @@ -279,7 +279,7 @@ struct LayerStandardSpec { spec.layers = { // ── 建筑 (建) ── {"建-墙体", R"(^建-墙)", "建筑墙体", 7, LineType::Continuous, 0.50, true}, - {"建-门窗", R"(^建-门)|(^建-窗)", "建筑门窗", 7, LineType::Continuous, 0.35, true}, + {"建-门窗", R"(^建-[门窗])", "建筑门窗", 7, LineType::Continuous, 0.35, true}, {"建-楼梯", R"(^建-楼梯)", "建筑楼梯", 7, LineType::Continuous, 0.35, false}, {"建-楼板", R"(^建-楼板)", "建筑楼板", 7, LineType::Continuous, 0.50, false}, {"建-屋顶", R"(^建-屋顶)", "建筑屋顶", 7, LineType::Continuous, 0.50, false},