mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/uri] Also warn URI::RFC3986_PARSER.extract
https://github.com/ruby/uri/commit/0f6b945557
This commit is contained in:
parent
da9bbd8cd8
commit
04ca75ea69
@ -142,6 +142,7 @@ module URI
|
||||
|
||||
# Compatibility for RFC2396 parser
|
||||
def extract(str, schemes = nil, &block) # :nodoc:
|
||||
warn "URI::RFC3986_PARSER.extract is obsoleted. Use URI::RFC2396_PARSER.extract explicitly.", uplevel: 1 if $VERBOSE
|
||||
RFC2396_PARSER.extract(str, schemes, &block)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user