Fix Wiki Indexer
This commit is contained in:
parent
32e6cde49d
commit
d0084af276
1 changed files with 7 additions and 10 deletions
|
@ -258,16 +258,13 @@ public class WikiIndexer {
|
|||
}
|
||||
int sr = -1;
|
||||
int se = e;
|
||||
for (int i = res ; i < e; i++) {
|
||||
if (sr == -1) {
|
||||
if (text.charAt(i) != '=' && !Character.isWhitespace(text.charAt(i))) {
|
||||
sr = i;
|
||||
}
|
||||
} else {
|
||||
for (int i = res; i < e; i++) {
|
||||
if (text.charAt(i) == '|') {
|
||||
se = i;
|
||||
break;
|
||||
}
|
||||
if (text.charAt(i) != '=') {
|
||||
sr = i + 1;
|
||||
}
|
||||
}
|
||||
if(sr != -1) {
|
||||
|
|
Loading…
Reference in a new issue