summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-06 14:40:05 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-06 14:40:05 +0200
commit653d3c749a1385b661e3f91181c69df768b9cd84 (patch)
treee0777ad7ee5bc526ab6695ee811a38c23628799f /lib/Travel
parent1e036e94b7b5500d8c1630548398980735ad9110 (diff)
db-ris: Only show info column when a train is late
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn.pm3
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) {