[openstreetmap/openstreetmap-website] Scope wiki linkification characters using POSIX words (PR #6612)
Tom Hughes
notifications at github.com
Sun Jan 18 22:30:33 UTC 2026
@tomhughes 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] }
I don't believe so, at least that seems to be the default for me:
```
bericote [~/src/osm/rails] % bundle exec rails c
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
Loading development environment (Rails 8.1.2)
open-street-map(dev):001> Regexp.timeout
=> 1.0
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6612#discussion_r2702777017
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6612/review/3675807837 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260118/b2fbaf92/attachment.htm>
More information about the rails-dev
mailing list