development_tools: update regex

This commit is contained in:
Dominyk Tiller 2018-06-05 05:28:37 +01:00
parent b092f1d0a9
commit d1bd3fcf03
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -63,7 +63,7 @@ class DevelopmentTools
def clang_version
@clang_version ||= begin
if (path = locate("clang")) &&
build_version = `#{path} --version`[/(?:clang|LLVM) version (\d\.\d)/, 1]
build_version = `#{path} --version`[/(?:clang|LLVM) version (\d+\.\d)/, 1]
Version.new build_version
else
Version::NULL