Fix #3558: Autocomplete: negated metatags aren't completed.
Fix Danbooru.Autocomplete.parse_query to strip prefixes off of metatags.
This commit is contained in:
@@ -251,7 +251,9 @@
|
|||||||
if (match = term.match(Danbooru.Autocomplete.PREFIXES)) {
|
if (match = term.match(Danbooru.Autocomplete.PREFIXES)) {
|
||||||
metatag = match[1].toLowerCase();
|
metatag = match[1].toLowerCase();
|
||||||
term = match[2];
|
term = match[2];
|
||||||
} else if (match = term.match(Danbooru.Autocomplete.METATAGS)) {
|
}
|
||||||
|
|
||||||
|
if (match = term.match(Danbooru.Autocomplete.METATAGS)) {
|
||||||
metatag = match[1].toLowerCase();
|
metatag = match[1].toLowerCase();
|
||||||
term = match[2];
|
term = match[2];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user