mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 01:10:02 +00:00
relax about subtags
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@218 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
da57c29103
commit
135b07f59e
2 changed files with 16 additions and 187 deletions
|
@ -442,7 +442,7 @@ public final class BahnProvider implements NetworkProvider
|
|||
return uri.toString();
|
||||
}
|
||||
|
||||
private static final Pattern P_DEPARTURES_COARSE = Pattern.compile("<Journey (.*?)/>", Pattern.DOTALL);
|
||||
private static final Pattern P_DEPARTURES_COARSE = Pattern.compile("<Journey (.*?)/?>", Pattern.DOTALL);
|
||||
static final Pattern P_DEPARTURES_FINE = Pattern.compile("" //
|
||||
+ "fpTime=\"(\\d{1,2}:\\d{2})\" fpDate=\"(\\d{2}\\.\\d{2}\\.\\d{2})\" \n" // time, date
|
||||
+ "delay=\"(?:-|k\\.A\\.?|cancel|\\+?\\s*(\\d+))\" \n" // delay
|
||||
|
@ -497,7 +497,7 @@ public final class BahnProvider implements NetworkProvider
|
|||
|
||||
final String position = mDepFine.group(4) != null ? "Gl. " + ParserUtils.resolveEntities(mDepFine.group(4)) : null;
|
||||
|
||||
final String destination = ParserUtils.resolveEntities(mDepFine.group(6));
|
||||
final String destination = ParserUtils.resolveEntities(mDepFine.group(6)).trim();
|
||||
|
||||
final String line = normalizeLine(ParserUtils.resolveEntities(mDepFine.group(7)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue