[openstreetmap/openstreetmap-website] Scope wiki linkification characters using POSIX words (PR #6612)

Marwin Hochfelsner notifications at github.com
Sun Jan 18 20:58:31 UTC 2026


@hlfan commented on this pull request.



> @@ -283,7 +282,7 @@ def gsub_pairs_for_linkify_detection
           expanded_path = "#{rule.host || "#{Settings.server_protocol}://#{Settings.server_url}"}/#{rule.path_template}"
           rule.patterns
               .select { |pattern| pattern.is_a?(String) }
-              .map { |pattern| [Regexp.new("(?<=^|#{URL_UNSAFE_CHARS})#{pattern}", Regexp::IGNORECASE), expanded_path] }
+              .map { |pattern| [Regexp.new("(?<=^|#{URL_UNSAFE_CHARS})#{pattern}", Regexp::IGNORECASE, :timeout => 1), expanded_path] }

Could the default timeout be something else than 1 s here @tomhughes?

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

Message ID: <openstreetmap/openstreetmap-website/pull/6612/review/3675768363 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260118/c4faa776/attachment.htm>


More information about the rails-dev mailing list