mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-03 12:47:31 +01:00
Remove ( and ) characters from FTS queries. Fixes issue #1010
This commit is contained in:
parent
ba520b3793
commit
3216f5b75e
@ -41,7 +41,10 @@ LibraryQuery::LibraryQuery(const QueryOptions& options)
|
||||
// Split on whitespace
|
||||
QStringList tokens(options.filter.split(QRegExp("\\s+")));
|
||||
QString query;
|
||||
foreach (const QString& token, tokens) {
|
||||
foreach (QString token, tokens) {
|
||||
token.remove('(');
|
||||
token.remove(')');
|
||||
|
||||
if (token.contains(':'))
|
||||
query += "fts" + token + "* ";
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user