From ea7f8d23926ca94bc54658e966411a3d4aceed86 Mon Sep 17 00:00:00 2001 From: CharlieYu4994 Date: Fri, 17 Oct 2025 17:00:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 98956fa..7fc2f1a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -351,7 +351,7 @@ impl JLC { let mut result_lines = Vec::new(); // 匹配独立的Dx*格式的正则表达式 - let aperture_regex = regex::Regex::new(r"(D\d{2,4}\*)").unwrap(); + let aperture_regex = regex::Regex::new(r"^(D\d{2,4}\*)").unwrap(); for line in lines { // 跳过已经包含%ADD或G54D的行