forked from e621ng/e621ng
improve #1752 fix
This commit is contained in:
parent
61b44cb483
commit
3059604359
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user