mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Don't interpret wildcard pattern as filepath globbing
PR #22590. Closes #22583.
This commit is contained in:
parent
a4094a440d
commit
f04b114b64
1 changed files with 5 additions and 0 deletions
|
@ -61,7 +61,12 @@ QString Utils::String::fromLocal8Bit(const std::string_view string)
|
||||||
|
|
||||||
QString Utils::String::wildcardToRegexPattern(const QString &pattern)
|
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);
|
return QRegularExpression::wildcardToRegularExpression(pattern, QRegularExpression::UnanchoredWildcardConversion);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList Utils::String::splitCommand(const QString &command)
|
QStringList Utils::String::splitCommand(const QString &command)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue