aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorilovezfs2016-03-11 03:34:47 -0800
committerXu Cheng2016-03-13 14:32:05 +0800
commit1e1184fc2d7bae278b2806ddda296e26dcc9fe97 (patch)
tree753598b674a39ae5977135ccbe11b495c42065d1 /Library
parent23ee1ee49957b4c5369bec9ea336006f40e44270 (diff)
downloadbrew-1e1184fc2d7bae278b2806ddda296e26dcc9fe97.tar.bz2
superenv: fix make_jobs regular expression
HOMEBREW_MAKE_JOBS can be a multidigit number. The regex should match the entire number not just the last digit. Closes Homebrew/homebrew#50016. Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV/super.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index 8c88cf79b..c2401602f 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -263,7 +263,7 @@ module Superenv
alias_method :j1, :deparallelize
def make_jobs
- self["MAKEFLAGS"] =~ /-\w*j(\d)+/
+ self["MAKEFLAGS"] =~ /-\w*j(\d+)/
[$1.to_i, 1].max
end