From 912e11e6737daddf29620ad01dd44212b58fb6a5 Mon Sep 17 00:00:00 2001 From: octopus_yan Date: Tue, 19 Nov 2024 20:22:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=AF=86=E5=88=ABcpp=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=97=B6=E8=B7=B3=E8=BF=87=E5=B8=A6#?= =?UTF-8?q?=E5=8F=B7=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java b/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java index 2bb46fd..5dad3b7 100644 --- a/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java +++ b/src/main/java/cn/octopusyan/dmt/utils/PBOUtil.java @@ -384,7 +384,7 @@ public class PBOUtil { Matcher matcher = CPP_PATTERN.matcher(line); // 不匹配 或 是变量 则跳过 - if (!matcher.matches() || line.contains("$")) + if (!matcher.matches() || line.contains("$") || line.contains("#")) continue; String name = matcher.group(1);