mirror of
https://github.com/octopusYan/dayz-mod-translator.git
synced 2024-11-23 12:46:42 +08:00
perf: 读取layout时 忽略#号开头文本
This commit is contained in:
parent
cb5e0229ff
commit
3cb5637972
@ -307,6 +307,8 @@ public class PBOUtil {
|
||||
if (StringUtils.isNoneEmpty(line) && matcher.matches()) {
|
||||
// 原文
|
||||
String original = matcher.group(1);
|
||||
|
||||
if (!original.startsWith("#")) {
|
||||
// 开始下标
|
||||
Integer startIndex = line.indexOf(original);
|
||||
// 添加单词
|
||||
@ -314,6 +316,7 @@ public class PBOUtil {
|
||||
wordItems.add(new WordItem(file, lines.get(), startIndex, original, ""));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
lines.addAndGet(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user