summaryrefslogtreecommitdiff
path: root/lib/uri
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 06:30:22 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 06:30:22 +0000
commit84bade6aa78dd58c9fab915ba9955a5b9f92bc85 (patch)
tree2d620cbafdcc4da1baebb235b075e990f719f247 /lib/uri
parentad12b5c28557004548d01714f52f77709dcc2fa7 (diff)
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/uri')
-rw-r--r--lib/uri/generic.rb2
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