Fix Wiki Indexer

This commit is contained in:
Victor Shcherb 2012-01-08 01:22:25 +01:00
parent 32e6cde49d
commit d0084af276

View file

@ -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) {