handle js error in autocomplete
This commit is contained in:
@@ -122,7 +122,12 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var term = before_caret_text.match(/\S+/g).pop();
|
var term = before_caret_text.match(/\S+/g);
|
||||||
|
if (!term) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
term = term.pop();
|
||||||
var regexp = new RegExp("^(?:" + prefixes + ")(.*)$", "i");
|
var regexp = new RegExp("^(?:" + prefixes + ")(.*)$", "i");
|
||||||
var match = term.match(regexp);
|
var match = term.match(regexp);
|
||||||
if (match) {
|
if (match) {
|
||||||
|
|||||||
Reference in New Issue
Block a user