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

autocomplete.js add dash to sample autocomplete

sample identification strings contain dash-separated dates, so we need
to detect that when matching for autocompletion
parent a62ab504
......@@ -126,7 +126,7 @@ VidjilAutoComplete.prototype = {
var callbacks = self.getDefaultCallbacks()
callbacks.matcher = function(flag, subtext) {
var regex = /([:\s0-9a-z_\[\]\(\)]+)/ig;
var regex = /([:\s0-9a-z_\[\]\(\)\-]+)/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