Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DEFAULT_PARSER at split, parse, join #111

Merged
merged 1 commit into from
Aug 5, 2024
Merged
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
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