From dbf372db2c81ab9e790e9f5934386554157856b7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 18 Sep 2015 16:59:28 +0200 Subject: Handle delayReason=" " --- lib/Travel/Status/DE/HAFAS.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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( -- cgit v1.2.3