diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-07-06 14:40:05 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-07-06 14:40:05 +0200 |
commit | 653d3c749a1385b661e3f91181c69df768b9cd84 (patch) | |
tree | e0777ad7ee5bc526ab6695ee811a38c23628799f /lib/Travel/Status/DE/DeutscheBahn.pm | |
parent | 1e036e94b7b5500d8c1630548398980735ad9110 (diff) |
db-ris: Only show info column when a train is late
Diffstat (limited to 'lib/Travel/Status/DE/DeutscheBahn.pm')
-rw-r--r-- | lib/Travel/Status/DE/DeutscheBahn.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |