summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-02-10 11:32:47 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-02-10 11:32:47 +0100
commitb612e6483c2a62fa9ea345221bd1f53623d701d9 (patch)
treea6bb787c397310bcb428b92eea0ace655226c4a5
parentbba7d1356b251275f4a89d538115be17b165623a (diff)
Replace all +n messages with Verspätung
-rw-r--r--cgi/index.pl5
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,