aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2016-07-21 14:08:06 +0800
committerXu Cheng2016-07-21 14:08:06 +0800
commit8b9ce59ce4b29d2ca761ebdc2acf4dcec3264eef (patch)
treec0c6a7e421e668b35a46a3977c15e532792a6f7e
parent11583d0f4a07af27056740ec5636f4e8008a6365 (diff)
downloadbrew-8b9ce59ce4b29d2ca761ebdc2acf4dcec3264eef.tar.bz2
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.
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 4ba8be3ea..1285db794 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