Skip to content

Commit

Permalink
Merge #1807 from remote-tracking branch 'origin/parseLong'
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Jun 27, 2023
2 parents 1cc6ff5 + 2da5faa commit de877b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/app/controllers/resources/Lobid.java
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ public static boolean compareIsil(String i1, String i2) {
return numerical(i1) < numerical(i2);
}

private static int numerical(String s) {
private static long numerical(String s) {
// replace non-digits with 9, e.g. for DE-5 before DE-Walb1
return Integer.parseInt(s.replaceAll("\\D", "9"));
return Long.parseLong(s.replaceAll("\\D", "9"));
}

}

0 comments on commit de877b0

Please sign in to comment.