[openstreetmap/openstreetmap-website] use JOSM/tag2link to linkify tag values (PR #6197)
Kyℓe Hensel
notifications at github.com
Thu Jul 17 08:54:10 UTC 2025
@k-yle commented on this pull request.
> @@ -0,0 +1,25 @@
+# A map of each OSM key to its formatter URL. For example:
+# { "ref:vatin" => "https://example.com/$1" }
+TAG2LINK = lambda {
+ # the JSON data is an array with duplicate entries, which is not efficient for lookups.
yeah I just didn't want to pollute the global namespace.
this is much more elegant, thanks. i'm not a ruby developer so any suggestions about code style are most welcome
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6197#discussion_r2212746866
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6197/review/3028586513 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250717/9e8612a2/attachment.htm>
More information about the rails-dev
mailing list