In quick filter, treat ! and : as literal characters when inside quotes (#43)

This commit is contained in:
Twan van Laarhoven
2020-05-16 13:25:25 +02:00
parent 92fbb9ea10
commit ab2adf7e70
+2 -2
View File
@@ -25,10 +25,10 @@ vector<QuickFilterPart> 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 {