diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-14 06:30:22 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-14 06:30:22 +0000 |
commit | 61a9609529cb1c68b15555cd53f01269a2145d79 (patch) | |
tree | 2d620cbafdcc4da1baebb235b075e990f719f247 /lib | |
parent | 634ed1f5687b09ee9edeec150d42af54fc528831 (diff) | |
download | ruby-61a9609529cb1c68b15555cd53f01269a2145d79.tar.gz |
Use string instead of regexp
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/uri/generic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 629323e80e..140fb055de 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -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 |