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:
andreas.schildbach 2010-10-01 15:46:21 +00:00
parent a10d69c944
commit da57c29103

View file

@ -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 "?---";