diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-11-26 18:29:34 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-11-26 18:29:34 +0100 |
commit | 6c8d494df892dbcb9dbd7048402137f385593e96 (patch) | |
tree | 14004ede28d797a069d643b1afa8f78be0354402 /cgi/index.pl | |
parent | 226253cb7ab9746cdb5767ebd3f8495ef60a04da (diff) |
info: handle uncommon delay information (e.g. after "Änderung im Fahrtverlauf")
Diffstat (limited to 'cgi/index.pl')
-rw-r--r-- | cgi/index.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/index.pl b/cgi/index.pl index 48583fc..65bbcb9 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -98,10 +98,10 @@ sub handle_request { $info = undef; } if ( $hide_low_delay and $info ) { - $info =~ s{ ^ (?: ca\. \s* )? \+ [ 1 2 3 4 ] $ }{}x; + $info =~ s{ (?: ca\. \s* )? \+ [ 1 2 3 4 ] $ }{}x; } if ($info) { - $info =~ s{ ^ (?: ca\. \s* )? \+ (\d+) }{Verspätung ca $1 Min.}x; + $info =~ s{ (?: ca\. \s* )? \+ (\d+) }{Verspätung ca $1 Min.}x; } push( @departures, |