rbinstall.rb: relaxed split argument
did_you_mean splits the output by `$/`.
This commit is contained in:
parent
5894ea5954
commit
e025113d71
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user