diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-09-18 16:59:28 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-09-18 16:59:28 +0200 |
commit | dbf372db2c81ab9e790e9f5934386554157856b7 (patch) | |
tree | 959d13f9c9384d886c9d2663d6c52e87b85f097b /lib/Travel/Status | |
parent | b0a9181998ac10c950e3a1605c719cbb89545bd7 (diff) |
Handle delayReason=" "
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS.pm | 5 |
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( |