]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/browse_helper.rb
Add a scrollbar when a note gets too big
[rails.git] / app / helpers / browse_helper.rb
index ea17b8202d1a9a4ac7b9493c8deb234aa00a34b7..c4e4d425a5ef997a97dbb84cc2d75eeac53a5cac 100644 (file)
@@ -97,7 +97,7 @@ private
     if key == "wikipedia"
       # This regex should match Wikipedia language codes, everything
       # from de to zh-classical
     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
         # 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