diff --git a/app/assets/javascripts/autocomplete.js.erb b/app/assets/javascripts/autocomplete.js.erb index f3b88c03d..5177f8248 100644 --- a/app/assets/javascripts/autocomplete.js.erb +++ b/app/assets/javascripts/autocomplete.js.erb @@ -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]; }