Skip to content

Commit

Permalink
Merge pull request #121 from ruby/warn-extract
Browse files Browse the repository at this point in the history
Also warn URI::RFC3986_PARSER.extract
  • Loading branch information
hsbt authored Aug 27, 2024
2 parents 28b9630 + 0f6b945 commit cee5b67
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 cee5b67

Please sign in to comment.