From 552f05837074a15e6105008e3d1950e50376aa6a Mon Sep 17 00:00:00 2001 From: "Albert S." Date: Thu, 23 May 2024 18:13:30 +0200 Subject: [PATCH] qt6: wildcardmatcher: use correct option for QRegularExpression::wildcardToRegularExpression() --- shared/wildcardmatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/wildcardmatcher.cpp b/shared/wildcardmatcher.cpp index 136fbf7..f563850 100644 --- a/shared/wildcardmatcher.cpp +++ b/shared/wildcardmatcher.cpp @@ -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); } }