@hlfan 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}/

I've now changed it to 
`([a-z]{2,3}(-[a-z]{2,3})?|be-tarask|roa-tara|simple|zh-classical|zh-min-nan)`, 
including the zh-classical variant from 
https://commons.wikimedia.org/wiki/Data:Wikipedia_statistics/data.tab

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

Message ID: 
<openstreetmap/openstreetmap-website/pull/7136/review/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to