[ruby/uri] URI.extract needs to pass block

If given block to URI.extract, it returns nil.

https://github.com/ruby/uri/commit/984145c407
This commit is contained in:
Hiroshi SHIBATA 2024-07-18 11:58:26 +09:00 committed by git
parent 862041d054
commit 2a56c1841d

View File

@ -141,8 +141,8 @@ module URI
end
# Compatibility for RFC2396 parser
def extract(str, schemes = nil) # :nodoc:
RFC2396_PARSER.extract(str, schemes)
def extract(str, schemes = nil, &block) # :nodoc:
RFC2396_PARSER.extract(str, schemes, &block)
end
# Compatibility for RFC2396 parser