Skip to content

Commit

Permalink
Use DEFAULT_PARSER at split, parse, join
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 5, 2024
1 parent cd1e539 commit 28af4e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/uri/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class BadURIError < Error; end
# ["fragment", "top"]]
#
def self.split(uri)
RFC3986_PARSER.split(uri)
DEFAULT_PARSER.split(uri)
end

# Returns a new \URI object constructed from the given string +uri+:
Expand All @@ -195,7 +195,7 @@ def self.split(uri)
# if it may contain invalid URI characters.
#
def self.parse(uri)
RFC3986_PARSER.parse(uri)
DEFAULT_PARSER.parse(uri)
end

# Merges the given URI strings +str+
Expand All @@ -222,7 +222,7 @@ def self.parse(uri)
# # => #<URI::HTTP http://example.com/foo/bar>
#
def self.join(*str)
RFC3986_PARSER.join(*str)
DEFAULT_PARSER.join(*str)
end

#
Expand Down

0 comments on commit 28af4e1

Please sign in to comment.