mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Don't interpret wildcard pattern as filepath globbing
PR #22590. Closes #22583.
This commit is contained in:
committed by
GitHub
parent
0b3bce8993
commit
b5394e7939
@@ -61,7 +61,12 @@ QString Utils::String::fromLocal8Bit(const std::string_view string)
|
||||
|
||||
QString Utils::String::wildcardToRegexPattern(const QString &pattern)
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 6, 0))
|
||||
return QRegularExpression::wildcardToRegularExpression(pattern
|
||||
, (QRegularExpression::UnanchoredWildcardConversion | QRegularExpression::NonPathWildcardConversion));
|
||||
#else
|
||||
return QRegularExpression::wildcardToRegularExpression(pattern, QRegularExpression::UnanchoredWildcardConversion);
|
||||
#endif
|
||||
}
|
||||
|
||||
QStringList Utils::String::splitCommand(const QString &command)
|
||||
|
||||
Reference in New Issue
Block a user