diff --git a/src/libs/extensionsystem/pluginmanager.cpp b/src/libs/extensionsystem/pluginmanager.cpp index 424ffb464bd..015a9384c98 100644 --- a/src/libs/extensionsystem/pluginmanager.cpp +++ b/src/libs/extensionsystem/pluginmanager.cpp @@ -1003,10 +1003,11 @@ static QStringList matchingTestFunctions(const QStringList &testFunctions, testFunctionName = testFunctionName.left(index); } - const QRegExp regExp(testFunctionName, Qt::CaseSensitive, QRegExp::Wildcard); + const QRegularExpression regExp( + QRegularExpression::wildcardToRegularExpression(testFunctionName)); QStringList matchingFunctions; for (const QString &testFunction : testFunctions) { - if (regExp.exactMatch(testFunction)) { + if (regExp.match(testFunction).hasMatch()) { // If the specified test data is invalid, the QTest framework will // print a reasonable error message for us. matchingFunctions.append(testFunction + testDataSuffix);