From e025113d71ca208255203f78cc85e9efa25bb23f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 7 Dec 2020 22:40:46 +0900 Subject: rbinstall.rb: relaxed split argument did_you_mean splits the output by `$/`. --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/rbinstall.rb') 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) -- cgit v1.2.1