[openstreetmap/openstreetmap-website] Remove secondary wiki prefix list (PR #7136)

Minh Nguyễn notifications at github.com
Mon Jun 15 14:58:43 UTC 2026


@1ec5 commented on this pull request.



> @@ -1,9 +1,11 @@
 # frozen_string_literal: true
 
 module BrowseTagsHelper
-  # https://wiki.openstreetmap.org/wiki/Key:wikipedia#Secondary_Wikipedia_links
-  # https://wiki.openstreetmap.org/wiki/Key:wikidata#Secondary_Wikidata_links
-  SECONDARY_WIKI_PREFIXES = "architect|artist|brand|buried|flag|genus|manufacturer|model|(?:official_|old_)?name:etymology|network|(?:heritage:|old_)?operator|owner|species|subject|taxon"
+  SECONDARY_WIKI_PREFIX_PATTERN = /[a-z:_-]+:/
+  QID_PATTERN = /[Qq][1-9][0-9]*/
+
+  # regex to match all wikipedia locale project identifiers from de and simple to zh-classical
+  WIKIPEDIA_PROJECT_IDENTIFIER_PATTERN = /[a-z]{1,2}[a-z-]{0,8}?[a-z]{1,2}/

Ah, I see this is how it was previously. We can track it as tail work for the next time someone touches this code.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7136#discussion_r3414447090
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/7136/review/4498555571 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260615/ccbc073c/attachment.htm>


More information about the rails-dev mailing list