Skip to content

Commit

Permalink
Поддержка пустых УИК. #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakov Sirotkin committed Jun 11, 2014
1 parent e561c14 commit 37433bb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions support/src/org/spbelect/OfficialCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,14 @@ public boolean accept(File dir, String name) {
pos = page.indexOf(nobr, pos);
int oldCounter = counter;
do {
pos += nobr.length();
pos += nobr.length();
int end = page.indexOf("</nobr>", pos);
if (end < 0) {
System.out.println("Никого нет в УИК " + uikId);
names.clear();
break;
}

String name = page.substring(pos, end).trim();
if (names.contains(name)) {
names.remove(name);
Expand Down Expand Up @@ -105,9 +111,9 @@ public boolean accept(File dir, String name) {
System.out.println();
}

if (counter > 100) {
break;
}
//if (counter > 100) {
// break;
// }
}
}

Expand Down

0 comments on commit 37433bb

Please sign in to comment.