qt6: wildcardmatcher: use correct option for QRegularExpression::wildcardToRegularExpression()
This commit is contained in:
parent
09ae06532d
commit
552f058370
@ -6,7 +6,7 @@ void WildcardMatcher::setPatterns(QStringList patterns)
|
||||
for(QString &str : patterns)
|
||||
{
|
||||
QRegularExpression regexp;
|
||||
regexp.setPattern(QRegularExpression::wildcardToRegularExpression(str));
|
||||
regexp.setPattern(QRegularExpression::wildcardToRegularExpression(str, QRegularExpression::UnanchoredWildcardConversion));
|
||||
this->regexes.append(regexp);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user