Fix #3558: Autocomplete: negated metatags aren't completed.

Fix Danbooru.Autocomplete.parse_query to strip prefixes off of
metatags.
This commit is contained in:
evazion
2018-02-19 23:55:56 -06:00
parent 9204cd825e
commit c482175050

View File

@@ -251,7 +251,9 @@
if (match = term.match(Danbooru.Autocomplete.PREFIXES)) {
metatag = match[1].toLowerCase();
term = match[2];
} else if (match = term.match(Danbooru.Autocomplete.METATAGS)) {
}
if (match = term.match(Danbooru.Autocomplete.METATAGS)) {
metatag = match[1].toLowerCase();
term = match[2];
}