From 653d3c749a1385b661e3f91181c69df768b9cd84 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 6 Jul 2011 14:40:05 +0200 Subject: db-ris: Only show info column when a train is late --- lib/Travel/Status/DE/DeutscheBahn.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Travel') diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm index 12450b2..be0621d 100644 --- a/lib/Travel/Status/DE/DeutscheBahn.pm +++ b/lib/Travel/Status/DE/DeutscheBahn.pm @@ -135,7 +135,8 @@ sub results { $str =~ tr/ //s; } - $info =~ s/,Grund//; + $info =~ s{ ,Grund }{}ox; + $info =~ s{ ^ \s+ }{}ox; while ( $route =~ m{$re_via}g ) { if ($first) { -- cgit v1.2.3