diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-10-15 16:06:02 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-10-15 16:06:02 +0200 |
commit | 91a0e1fbe110cd7a5c69506e16888376e380b53a (patch) | |
tree | a9553e572d3abc85454756646599692724643487 /index.pl | |
parent | a2c6d41329c9f85969dc11c0f00d2cd588dc7884 (diff) |
shorten_destination: add special case for Düsseldorf (prefix "D-", not "Düsseldorf")
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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} |