Match wikipedia language prefixes case insensitively

Without this values like "PL:Article" are linked to the English Wikipedia.
This commit is contained in:
Paweł Paprota 2012-10-05 20:38:46 +02:00 committed by Tom Hughes
parent 8688edf992
commit 067ff20504

View file

@ -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