summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-11-11 11:51:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-11-11 11:51:32 +0100
commit985f96b0f11c6b7793361a3f1fe34ab3f915cecb (patch)
treeaad45640a9fc0b516cad9ca26a2075548855ad60
parent4dec7f383e0967c04f71bc2c373cb712a662361e (diff)
cgi: shsorten_destination: Use case-insensitive regex
-rw-r--r--cgi/index.pl2
1 files changed, 1 insertions, 1 deletions
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}