From 1e1184fc2d7bae278b2806ddda296e26dcc9fe97 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 11 Mar 2016 03:34:47 -0800 Subject: [PATCH] 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 --- Library/Homebrew/extend/ENV/super.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 8c88cf79bf..c2401602f3 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