summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-15 16:06:02 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-15 16:06:02 +0200
commit91a0e1fbe110cd7a5c69506e16888376e380b53a (patch)
treea9553e572d3abc85454756646599692724643487 /index.pl
parenta2c6d41329c9f85969dc11c0f00d2cd588dc7884 (diff)
shorten_destination: add special case for Düsseldorf (prefix "D-", not "Düsseldorf")
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index afa3c27..4951878 100644
--- a/index.pl
+++ b/index.pl
@@ -207,6 +207,10 @@ sub shorten_destination {
$dest =~ s{ ^ $city \s }{}ix;
}
+ if ( $city =~ m{ ^ ( D | Duesseldorf | Düsseldorf ) $ }ix ) {
+ $dest =~ s{ ^ D - }{}ix;
+ }
+
if ( length($dest) > 20 ) {
$dest =~ s{^Dortmund}{DO}
or $dest =~ s{^Duisburg}{DU}