mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 08:19:51 +00:00
Fix crash when parsing huge integers in positions.
This commit is contained in:
parent
322e7cf8cb
commit
0267c655bf
1 changed files with 2 additions and 2 deletions
|
@ -166,10 +166,10 @@ public abstract class AbstractNetworkProvider implements NetworkProvider
|
|||
return normalized.toString();
|
||||
}
|
||||
|
||||
private static final Pattern P_NAME_SECTION = Pattern.compile("(\\d+)\\s*" + //
|
||||
private static final Pattern P_NAME_SECTION = Pattern.compile("(\\d{1,5})\\s*" + //
|
||||
"([A-Z](?:\\s*-?\\s*[A-Z])?)?", Pattern.CASE_INSENSITIVE);
|
||||
|
||||
private static final Pattern P_NAME_NOSW = Pattern.compile("(\\d+)\\s*" + //
|
||||
private static final Pattern P_NAME_NOSW = Pattern.compile("(\\d{1,5})\\s*" + //
|
||||
"(Nord|Süd|Ost|West)", Pattern.CASE_INSENSITIVE);
|
||||
|
||||
protected Position parsePosition(final String position)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue