diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-07 22:40:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-07 22:40:46 +0900 |
commit | e025113d71ca208255203f78cc85e9efa25bb23f (patch) | |
tree | 8cb6d089705a9bf4f0e21306c5e92e94d990ea83 /tool/rbinstall.rb | |
parent | 5894ea5954db119fc818bb7030ed56cf46830c6d (diff) | |
download | ruby-e025113d71ca208255203f78cc85e9efa25bb23f.tar.gz |
rbinstall.rb: relaxed split argument
did_you_mean splits the output by `$/`.
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-x | tool/rbinstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index fcc41f2151..b1f657a69b 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -874,7 +874,7 @@ end def load_gemspec(file, expanded = false) file = File.realpath(file) code = File.read(file, encoding: "utf-8:-") - code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\(\"(?:\\.|[^\"])*\"\)/m) do + code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\([^\)]*\)/m) do files = [] if expanded base = File.dirname(file) |