Match wikipedia language prefixes case insensitively
Without this values like "PL:Article" are linked to the English Wikipedia.
This commit is contained in:
parent
8688edf992
commit
067ff20504
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ private
|
|||
if key == "wikipedia"
|
||||
# This regex should match Wikipedia language codes, everything
|
||||
# from de to zh-classical
|
||||
if value =~ /^([a-z-]{2,12}):(.+)$/
|
||||
if value =~ /^([a-z-]{2,12}):(.+)$/i
|
||||
# Value is <lang>:<title> so split it up
|
||||
# Note that value is always left as-is, see: https://trac.openstreetmap.org/ticket/4315
|
||||
lang = $1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue