mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
In quick filter, treat ! and : as literal characters when inside quotes (#43)
This commit is contained in:
+2
-2
@@ -25,10 +25,10 @@ vector<QuickFilterPart> parse_quicksearch_query(String const& query) {
|
|||||||
} else if (c == _('"')) {
|
} else if (c == _('"')) {
|
||||||
// begin/end quoted string, match exactly
|
// begin/end quoted string, match exactly
|
||||||
quoted = !quoted;
|
quoted = !quoted;
|
||||||
} else if (c == _(':') && part.type.empty()) {
|
} else if (c == _(':') && part.type.empty() && !quoted) {
|
||||||
part.type = part.query;
|
part.type = part.query;
|
||||||
part.query.clear();
|
part.query.clear();
|
||||||
} else if (c == _('!') && part.query.empty() && part.type.empty()) {
|
} else if (c == _('!') && part.query.empty() && part.type.empty() && !quoted) {
|
||||||
// negate
|
// negate
|
||||||
part.need_match = false;
|
part.need_match = false;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user