End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
URI::RFC2396_Parser#make_regexp
make_regexp(schemes = nil)
lib/uri/rfc2396_parser.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/uri/rfc2396_parser.rb, line 262
def make_regexp(schemes = nil)
unless schemes
@regexp[:ABS_URI_REF]
else
/(?=#{Regexp.union(*schemes)}:)#{@pattern[:X_ABS_URI]}/x
end
end
Returns Regexp that is default self.regexp[:ABS_URI_REF], unless schemes is provided. Then it is a Regexp.union with self.pattern[:X_ABS_URI].