mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
relax about illegal quotes in attributes
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@217 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
a10d69c944
commit
da57c29103
1 changed files with 6 additions and 3 deletions
|
@ -448,10 +448,10 @@ public final class BahnProvider implements NetworkProvider
|
|||
+ "delay=\"(?:-|k\\.A\\.?|cancel|\\+?\\s*(\\d+))\" \n" // delay
|
||||
+ "(?:platform =\"([^\"]*)\" \n)?" // position
|
||||
+ "(?:newpl =\"([^\"]*)\" \n)?" //
|
||||
+ "targetLoc=\"([^\"]*)\" \n" // destination
|
||||
+ "targetLoc=\"(.*?)\" \n" // destination
|
||||
+ "prod=\"([^\"]*)\" \n" // line
|
||||
+ "(?:dir=[^\n]*\n)?" // (destination)
|
||||
+ "(?:depStation=\"([^\"]*)\"\n)?" //
|
||||
+ "(?:depStation=\"(.*?)\"\n)?" //
|
||||
+ "delayReason=\"([^\"]*)\"\n" // message
|
||||
);
|
||||
private static final Pattern P_DEPARTURES_MESSAGES = Pattern.compile("<Err code=\"([^\"]*)\" text=\"([^\"]*)\"");
|
||||
|
@ -530,9 +530,12 @@ public final class BahnProvider implements NetworkProvider
|
|||
// ARZ29177
|
||||
// ARZ29178
|
||||
|
||||
if (line == null || line.length() == 0)
|
||||
if (line == null)
|
||||
return null;
|
||||
|
||||
if (line.length() == 0)
|
||||
return "?";
|
||||
|
||||
if (line.equals("---"))
|
||||
return "?---";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue