summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-11-30 19:48:38 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-11-30 19:48:38 +0100
commitb9f584093b5f92fe8092963445ec67bde9a3810a (patch)
treed268f368129f952ec3662e441723af78591f9c85
parentd2cef5415a17ab6a421dc17c07f3adcefcedb571 (diff)
fix "S1 S-Bahn" and similar (Berlin)
-rw-r--r--cgi/index.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index e1206be..ea2b557 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -163,6 +163,8 @@ sub render_image {
// $strp_simple->parse_datetime($time);
my $dt;
+ $line =~ s{ \s* S-Bahn }{}ox;
+
if ( ( @grep_line and not( grep { $line =~ $_ } @grep_line ) )
or ( @grep_platform and not( $platform ~~ \@grep_platform ) )
or ( $line =~ m{ ^ (RB | RE | IC | EC) }x ) )