From 16606b450d96dbdd886c99ff6292f570bc69e79b Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Fri, 13 Feb 2026 00:14:17 +0100 Subject: [PATCH] Raise linkify regex timeout --- lib/rich_text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rich_text.rb b/lib/rich_text.rb index 6f6fc1cef..5464edb17 100644 --- a/lib/rich_text.rb +++ b/lib/rich_text.rb @@ -112,7 +112,7 @@ module RichText 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, :timeout => 0.01), expanded_path] } + .map { |pattern| [Regexp.new("(?<=^|#{URL_UNSAFE_CHARS})#{pattern}", Regexp::IGNORECASE, :timeout => 0.05), expanded_path] } end end -- 2.39.5