FormulaInstaller#sanitized_ARGV_options: fix regex
This fixes a regression caused by 2e961dc9dee63f641f7f162fd7a2845c5fd092fe, where a misplaced `+` cause the regex only catch one character. Fixes https://github.com/Homebrew/homebrew-science/issues/3847.
This commit is contained in:
parent
11583d0f4a
commit
8b9ce59ce4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user