Skip to content
Snippets Groups Projects
Unverified Commit 8b9ce59c authored by Xu Cheng's avatar Xu Cheng
Browse files

FormulaInstaller#sanitized_ARGV_options: fix regex

This fixes a regression caused by 2e961dc9,
where a misplaced `+` cause the regex only catch one character.

Fixes https://github.com/Homebrew/homebrew-science/issues/3847.
parent 11583d0f
No related branches found
No related tags found
No related merge requests found
......@@ -535,7 +535,7 @@ class FormulaInstaller
end
formula.options.each do |opt|
name = opt.name[/^([^=])+=$/, 1]
name = opt.name[/^([^=]+)=$/, 1]
value = ARGV.value(name) if name
args << "--#{name}=#{value}" if value
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment