summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-18 16:59:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-18 16:59:28 +0200
commitdbf372db2c81ab9e790e9f5934386554157856b7 (patch)
tree959d13f9c9384d886c9d2663d6c52e87b85f097b /lib
parentb0a9181998ac10c950e3a1605c719cbb89545bd7 (diff)
Handle delayReason=" "
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index b1ebad1..66762f4 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -309,6 +309,11 @@ sub results {
$info //= q{};
$routeinfo //= q{};
+ # delayReason=" " means no delay reason
+ if ( $info eq q{ } ) {
+ $info = q{};
+ }
+
$train =~ s{#.*$}{};
push(