Skip to content

Commit

Permalink
Also warn URI::RFC3986_PARSER.extract
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 27, 2024
1 parent 28b9630 commit 0f6b945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/uri/rfc3986_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def join(*uris) # :nodoc:

# 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

Expand Down

0 comments on commit 0f6b945

Please sign in to comment.