qt6: wildcardmatcher: use correct option for QRegularExpression::wildcardToRegularExpression()
Этот коммит содержится в:
родитель
6640504b49
Коммит
cfc64705e3
@ -6,7 +6,7 @@ void WildcardMatcher::setPatterns(QStringList patterns)
|
|||||||
for(QString &str : patterns)
|
for(QString &str : patterns)
|
||||||
{
|
{
|
||||||
QRegularExpression regexp;
|
QRegularExpression regexp;
|
||||||
regexp.setPattern(QRegularExpression::wildcardToRegularExpression(str));
|
regexp.setPattern(QRegularExpression::wildcardToRegularExpression(str, QRegularExpression::UnanchoredWildcardConversion));
|
||||||
this->regexes.append(regexp);
|
this->regexes.append(regexp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user