mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- wildcard matching for "do not match" tokens too
This commit is contained in:
parent
3f2076d195
commit
db564b4521
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ public:
|
||||||
QStringList notmatch_tokens = getNotMatchingTokens();
|
QStringList notmatch_tokens = getNotMatchingTokens();
|
||||||
foreach(const QString& token, notmatch_tokens) {
|
foreach(const QString& token, notmatch_tokens) {
|
||||||
if(token.isEmpty()) continue;
|
if(token.isEmpty()) continue;
|
||||||
QRegExp reg(token, Qt::CaseInsensitive);
|
QRegExp reg(token, Qt::CaseInsensitive, QRegExp::Wildcard);
|
||||||
if(reg.indexIn(s) > -1) return false;
|
if(reg.indexIn(s) > -1) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue