Skip to content

Commit 28af4e1

Browse files
committed
Use DEFAULT_PARSER at split, parse, join
1 parent cd1e539 commit 28af4e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/uri/common.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class BadURIError < Error; end
181181
# ["fragment", "top"]]
182182
#
183183
def self.split(uri)
184-
RFC3986_PARSER.split(uri)
184+
DEFAULT_PARSER.split(uri)
185185
end
186186

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

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

228228
#

0 commit comments

Comments
 (0)