From 985f96b0f11c6b7793361a3f1fe34ab3f915cecb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 11 Nov 2011 11:51:32 +0100 Subject: cgi: shsorten_destination: Use case-insensitive regex --- cgi/index.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi/index.pl b/cgi/index.pl index 66134e1..3a15567 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -66,7 +66,7 @@ sub handle_request { sub shorten_destination { my ( $dest, $city ) = @_; - $dest =~ s{ ^ $city \s }{}x; + $dest =~ s{ ^ $city \s }{}ix; if ( length($dest) > 20 ) { $dest =~ s{^Dortmund}{DO} -- cgit v1.2.3