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:
parent
ad12b5c285
commit
84bade6aa7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue