perf: 识别cpp文件内容时跳过带#号内容

This commit is contained in:
octopus_yan 2024-11-19 20:22:31 +08:00
parent 8a6ef06ae6
commit 912e11e673

View File

@ -384,7 +384,7 @@ public class PBOUtil {
Matcher matcher = CPP_PATTERN.matcher(line); Matcher matcher = CPP_PATTERN.matcher(line);
// 不匹配 是变量 则跳过 // 不匹配 是变量 则跳过
if (!matcher.matches() || line.contains("$")) if (!matcher.matches() || line.contains("$") || line.contains("#"))
continue; continue;
String name = matcher.group(1); String name = matcher.group(1);