From 067ff205044892af626d117313b42e9b5f703789 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Paprota?= Date: Fri, 5 Oct 2012 20:38:46 +0200 Subject: [PATCH] Match wikipedia language prefixes case insensitively Without this values like "PL:Article" are linked to the English Wikipedia. --- app/helpers/browse_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/browse_helper.rb b/app/helpers/browse_helper.rb index ea17b8202..c4e4d425a 100644 --- a/app/helpers/browse_helper.rb +++ b/app/helpers/browse_helper.rb @@ -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 : so split it up # Note that value is always left as-is, see: https://trac.openstreetmap.org/ticket/4315 lang = $1 -- 2.43.2