Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/uri/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ def self.join(*str)
# # => ["http://foo.example.com/bla", "mailto:test@example.com"]
#
def self.extract(str, schemes = nil, &block) # :nodoc:
warn "URI.extract is obsolete", uplevel: 1 if $VERBOSE
PARSER.extract(str, schemes, &block)
warn "URI.extract is obsolete. Please use URI::RFC2396_PARSER.extract instead.", uplevel: 1 if $VERBOSE
URI::RFC2396_PARSER.extract(str, schemes, &block)
end

#
Expand Down Expand Up @@ -336,8 +336,8 @@ def self.extract(str, schemes = nil, &block) # :nodoc:
# end
#
def self.regexp(schemes = nil)# :nodoc:
warn "URI.regexp is obsolete", uplevel: 1 if $VERBOSE
PARSER.make_regexp(schemes)
warn "URI.regexp is obsolete. Please use URI::RFC2396_PARSER.make_regexp instead.", uplevel: 1 if $VERBOSE
RFC2396_PARSER.make_regexp(schemes)
end

TBLENCWWWCOMP_ = {} # :nodoc:
Expand Down