ruby-changes:49110
From: naruse <ko1@a...>
Date: Thu, 14 Dec 2017 15:30:32 +0900 (JST)
Subject: [ruby-changes:49110] naruse:r61225 (trunk): Use string instead of regexp
naruse 2017-12-14 15:30:22 +0900 (Thu, 14 Dec 2017) New Revision: 61225 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61225 Log: Use string instead of regexp Modified files: trunk/lib/uri/generic.rb Index: lib/uri/generic.rb =================================================================== --- lib/uri/generic.rb (revision 61224) +++ lib/uri/generic.rb (revision 61225) @@ -979,7 +979,7 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/generic.rb#L979 # returns an Array of the path split on '/' # def split_path(path) - path.split(%r{/}, -1) + path.split("/", -1) end private :split_path -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/