diff options
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/index.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cgi/index.pl b/cgi/index.pl index 6fdfcb8..0aef77a 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -84,8 +84,9 @@ sub handle_request { if ( $info eq '+0' ) { $info = undef; } - if ( $info and $info =~ m{ ^ \+ (\d+) $ }ox ) { - $info = "Verspaetung ca. $1 Minuten"; + if ($info) { + $info =~ s{ ^ (?: ca\. \s* )? \+ (\d+) }{Verspaetung ca. $1 Minuten}x; + $info =~ s{ 1 \s Minute\Kn }{}x; } push( @departures, |