mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 00:09:55 +00:00
Hafas: Parse negative delays on XML station board.
This commit is contained in:
parent
f2327c9a50
commit
fcf97a7399
1 changed files with 1 additions and 1 deletions
|
@ -617,7 +617,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
uri.append(ParserUtils.urlEncode(String.format(Locale.ENGLISH, "%02d:%02d", hour, minute)));
|
||||
}
|
||||
|
||||
private static final Pattern P_XML_STATION_BOARD_DELAY = Pattern.compile("(?:-|k\\.A\\.?|cancel|\\+?\\s*(\\d+))");
|
||||
private static final Pattern P_XML_STATION_BOARD_DELAY = Pattern.compile("(?:-|k\\.A\\.?|cancel|([+-]?\\s*\\d+))");
|
||||
|
||||
protected final QueryDeparturesResult xmlStationBoard(final String uri, final String stationId) throws IOException
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue