summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/configure/environment.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/configure/environment.cpp b/tools/configure/environment.cpp
index 562c5db7a7..60616f35e7 100644
--- a/tools/configure/environment.cpp
+++ b/tools/configure/environment.cpp
@@ -182,7 +182,7 @@ QString Environment::msvcVersion()
cout << "Could not get cl version" << returnValue << qPrintable(version) << '\n';;
version.clear();
} else {
- QRegExp versionRegexp(QStringLiteral("^.*Compiler Version ([0-9.]+) for.*$"));
+ QRegExp versionRegexp(QStringLiteral("^.*\\b(\\d{2,2}\\.\\d{2,2}\\.\\d{5,5})\\b.*$"));
Q_ASSERT(versionRegexp.isValid());
if (versionRegexp.exactMatch(version)) {
version = versionRegexp.cap(1);