From: Giuseppe Bilotta Date: Sat, 22 Mar 2025 19:23:51 +0000 (+0100) Subject: url: fix ancient syntax X-Git-Url: http://git.oblomov.eu/rbot/commitdiff_plain url: fix ancient syntax Regexp.new does not support three-argument constructors since Ruby 2.4 --- 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 @@ 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},