diff options
| author | Jack Nagel | 2011-12-16 03:03:10 -0600 |
|---|---|---|
| committer | Jack Nagel | 2011-12-16 03:03:10 -0600 |
| commit | 76ec8e18cfadf81c53a4239c76b1443867cde63e (patch) | |
| tree | fcafa2731b98ad76c0e0ddee829e6947f795acb9 | |
| parent | 455b8717d3a6cc53becaf5ed46331eb56cdbc21e (diff) | |
| download | homebrew-76ec8e18cfadf81c53a4239c76b1443867cde63e.tar.bz2 | |
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 <jacknagel@gmail.com>
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index df23c1387..6d4d8c237 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 |
