Don't anchor wildcard patterns twice

wildcardToRegularExpression anchors the pattern by default.

Change-Id: Ic58e09aa526a7e35803703fa5f7582a250927008
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
This commit is contained in:
Lars Knoll 2020-04-01 16:07:20 +02:00
parent cb1000ea02
commit dba00c4a3b

View File

@ -527,7 +527,7 @@ QList<QSslCertificate> QSslCertificate::fromPath(const QString &path,
#if QT_CONFIG(regularexpression)
if (syntax == PatternSyntax::Wildcard)
sourcePath = QRegularExpression::wildcardToRegularExpression(sourcePath);
sourcePath = QRegularExpression::wildcardToRegularExpression(sourcePath, QRegularExpression::UnanchoredWildcardConversion);
QRegularExpression pattern(QRegularExpression::anchoredPattern(sourcePath));
#endif