From 8b9ce59ce4b29d2ca761ebdc2acf4dcec3264eef Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 21 Jul 2016 14:08:06 +0800 Subject: [PATCH] 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. --- Library/Homebrew/formula_installer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 4ba8be3ea5..1285db794f 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -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