mirror of
https://github.com/octopusYan/dayz-mod-translator.git
synced 2024-11-22 04:06:42 +08:00
perf: 识别cpp文件内容时跳过带#号内容
This commit is contained in:
parent
8a6ef06ae6
commit
912e11e673
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user