mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
rbinstall.rb: relaxed split argument
did_you_mean splits the output by `$/`.
This commit is contained in:
parent
5894ea5954
commit
e025113d71
1 changed files with 1 additions and 1 deletions
|
@ -874,7 +874,7 @@ end
|
||||||
def load_gemspec(file, expanded = false)
|
def load_gemspec(file, expanded = false)
|
||||||
file = File.realpath(file)
|
file = File.realpath(file)
|
||||||
code = File.read(file, encoding: "utf-8:-")
|
code = File.read(file, encoding: "utf-8:-")
|
||||||
code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\(\"(?:\\.|[^\"])*\"\)/m) do
|
code.gsub!(/(?:`git[^\`]*`|%x\[git[^\]]*\])\.split\([^\)]*\)/m) do
|
||||||
files = []
|
files = []
|
||||||
if expanded
|
if expanded
|
||||||
base = File.dirname(file)
|
base = File.dirname(file)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue