Commit de3cff58 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

autocomplete.js display suggestions on empty strings

See #2963
parent 493bfcc5
......@@ -126,7 +126,7 @@ VidjilAutoComplete.prototype = {
var callbacks = self.getDefaultCallbacks()
callbacks.matcher = function(flag, subtext) {
var regex = /([:0-9a-z_\[\]\(\)\-]+\s*)+/ig;
var regex = /([:0-9a-z_\[\]\(\)\-]+\s*)*/ig;
var match = subtext.match(regex);
if (match) {
return match[0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment