diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-02-10 11:32:47 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-02-10 11:32:47 +0100 |
commit | b612e6483c2a62fa9ea345221bd1f53623d701d9 (patch) | |
tree | a6bb787c397310bcb428b92eea0ace655226c4a5 /cgi | |
parent | bba7d1356b251275f4a89d538115be17b165623a (diff) |
Replace all +n messages with Verspätung
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, |