diff --git a/src/data/filter.cpp b/src/data/filter.cpp index d187510a..116cb0f3 100644 --- a/src/data/filter.cpp +++ b/src/data/filter.cpp @@ -25,10 +25,10 @@ vector parse_quicksearch_query(String const& query) { } else if (c == _('"')) { // begin/end quoted string, match exactly quoted = !quoted; - } else if (c == _(':') && part.type.empty()) { + } else if (c == _(':') && part.type.empty() && !quoted) { part.type = part.query; part.query.clear(); - } else if (c == _('!') && part.query.empty() && part.type.empty()) { + } else if (c == _('!') && part.query.empty() && part.type.empty() && !quoted) { // negate part.need_match = false; } else {