1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use string instead of regexp

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2017-12-14 06:30:22 +00:00
parent ad12b5c285
commit 84bade6aa7

View file

@ -979,7 +979,7 @@ module URI
# returns an Array of the path split on '/'
#
def split_path(path)
path.split(%r{/}, -1)
path.split("/", -1)
end
private :split_path