mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 22:48:49 +00:00
redo messages in connection details parsing
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@353 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
fe76c76da2
commit
25738083e7
1 changed files with 2 additions and 1 deletions
|
@ -314,7 +314,8 @@ public final class BahnProvider extends AbstractHafasProvider
|
|||
+ "<span class=\"bold\">\\s*(.+?)\\s*</span><br />\n" // arrival
|
||||
+ ")", Pattern.DOTALL);
|
||||
private static final Pattern P_CONNECTION_DETAILS_ERROR = Pattern.compile("(zwischenzeitlich nicht mehr gespeichert)");
|
||||
private static final Pattern P_CONNECTION_DETAILS_MESSAGES = Pattern.compile("Dauer: \\d+:\\d+");
|
||||
private static final Pattern P_CONNECTION_DETAILS_MESSAGES = Pattern
|
||||
.compile("Dauer: \\d+:\\d+|(Anschlusszug nicht mehr rechtzeitig)|(Anschlusszug jedoch erreicht werden)|(nur teilweise dargestellt)|(Längerer Aufenthalt)|(äquivalentem Bahnhof)|(Bahnhof wird mehrfach durchfahren)");
|
||||
|
||||
@Override
|
||||
public GetConnectionDetailsResult getConnectionDetails(final String uri) throws IOException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue