From df8edc94d6237cc58e8eb51d537c7ddb18687e98 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 16 Dec 2011 03:03:10 -0600 Subject: [PATCH] utils: fix clang build regex This has to be able to match things like "211.10.1" so let's stop using fixed lengths. Signed-off-by: Jack Nagel --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index df23c13871..6d4d8c2372 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -340,7 +340,7 @@ module MacOS extend self def clang_build_version @clang_build_version ||= if File.exist? "/usr/bin/clang" - `/usr/bin/clang --version` =~ %r[tags/Apple/clang-(\d{2,3}(\.\d)*)] + `/usr/bin/clang --version` =~ %r[tags/Apple/clang-(\d+(\.\d+)*)] $1 end end