forked from qt-creator/qt-creator
AutoTest: Fix regular expression
All test cases are surrounded by the quotes and the quotes themselves do not belong to the test case name. Change-Id: Ie38b0bbaed915ea38f8bd11174510c5096de3de8 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -89,7 +89,7 @@ static QString caseFromContent(const QString &content)
|
||||
}
|
||||
|
||||
QString result = content.mid(index + 5);
|
||||
static QRegularExpression functionName("([^\\s]+):.*");
|
||||
static QRegularExpression functionName("\"(.+)\":.*");
|
||||
const QRegularExpressionMatch matcher = functionName.match(result);
|
||||
if (!matcher.hasMatch()) {
|
||||
qCDebug(orLog) << "got no match";
|
||||
|
||||
Reference in New Issue
Block a user