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