This commit is contained in:
Toks 2013-06-28 10:55:20 -04:00
parent 61b44cb483
commit 3059604359

View File

@ -71,11 +71,14 @@
}
var term = before_caret_text.match(/\S+/g).pop();
var prefixes = /^(?:-|~|general:|gen:|artist:|art:|copyright:|copy:|co:|character:|char:|ch:)(.+)$/
var prefixes = /^(?:-|~|general:|gen:|artist:|art:|copyright:|copy:|co:|character:|char:|ch:)(.*)$/
var match = term.match(prefixes);
if (match) {
term = match[1];
}
if (term === "") {
return;
}
$.ajax({
url: "/tags.json",