[openstreetmap/openstreetmap-website] Remove secondary wiki prefix list (PR #7136)
Marwin Hochfelsner
notifications at github.com
Sat Jun 6 00:28:46 UTC 2026
@hlfan commented on this pull request.
> @@ -81,9 +77,9 @@ def wikipedia_links(key, value)
return nil if %r{^https?://}.match?(value)
case key
- when "wikipedia", /^(#{SECONDARY_WIKI_PREFIXES}):wikipedia/o
- lang = "en"
- when /^wikipedia:(\S+)$/
+ when /(?:^|:)wikipedia$/
+ lang = "en" if key == "wikipedia"
+ when /(?:^|:)wikipedia:(\S+)$/
Maybe tune the regex to align more with the color preview one?
```suggestion
when /^(?>.+:)?wikipedia:(\S+)$/
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7136#pullrequestreview-4440588755
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7136/review/4440588755 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260605/b17df1a4/attachment-0001.htm>
More information about the rails-dev
mailing list