summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-07 22:40:46 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-07 22:40:46 +0900
commite025113d71ca208255203f78cc85e9efa25bb23f (patch)
tree8cb6d089705a9bf4f0e21306c5e92e94d990ea83 /tool/rbinstall.rb
parent5894ea5954db119fc818bb7030ed56cf46830c6d (diff)
downloadruby-e025113d71ca208255203f78cc85e9efa25bb23f.tar.gz
rbinstall.rb: relaxed split argument
did_you_mean splits the output by `$/`.
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb2
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)