From 6a0eb8f8bb266ec77c38fe530fb5f3cd1df86203 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 22 Mar 2025 20:23:51 +0100 Subject: [PATCH] url: fix ancient syntax Regexp.new does not support three-argument constructors since Ruby 2.4 --- data/rbot/plugins/url.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index a1104583..559a0f5c 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -9,7 +9,7 @@ define_structure :Url, :channel, :nick, :time, :url, :info class UrlPlugin < Plugin LINK_INFO = "[Link Info]" - OUR_UNSAFE = Regexp.new("[^#{URI::PATTERN::UNRESERVED}#{URI::PATTERN::RESERVED}%# ]", false, 'N') + OUR_UNSAFE = Regexp.new("[^#{URI::PATTERN::UNRESERVED}#{URI::PATTERN::RESERVED}%# ]", false) Config.register Config::IntegerValue.new('url.max_urls', :default => 100, :validate => Proc.new{|v| v > 0}, -- 2.32.0.93.g670b81a890