improve #1752 fix
This commit is contained in:
@@ -71,11 +71,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var term = before_caret_text.match(/\S+/g).pop();
|
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);
|
var match = term.match(prefixes);
|
||||||
if (match) {
|
if (match) {
|
||||||
term = match[1];
|
term = match[1];
|
||||||
}
|
}
|
||||||
|
if (term === "") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/tags.json",
|
url: "/tags.json",
|
||||||
|
|||||||
Reference in New Issue
Block a user