From da57c29103edc3ae54f89f70ac6e028ec52d30f1 Mon Sep 17 00:00:00 2001 From: "andreas.schildbach" Date: Fri, 1 Oct 2010 15:46:21 +0000 Subject: [PATCH] relax about illegal quotes in attributes git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@217 0924bc21-9374-b0fa-ee44-9ff1593b38f0 --- src/de/schildbach/pte/BahnProvider.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/de/schildbach/pte/BahnProvider.java b/src/de/schildbach/pte/BahnProvider.java index c6a34507..ddc5f59b 100644 --- a/src/de/schildbach/pte/BahnProvider.java +++ b/src/de/schildbach/pte/BahnProvider.java @@ -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("