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:
parent
cb1000ea02
commit
dba00c4a3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user