diff options
Diffstat (limited to 'assets/default/js')
-rw-r--r-- | assets/default/js/base.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/default/js/base.js b/assets/default/js/base.js index 37069d69..dd532bb7 100644 --- a/assets/default/js/base.js +++ b/assets/default/js/base.js | |||
@@ -55,7 +55,8 @@ function createAwesompleteInstance(element, separator, tags = []) { | |||
55 | // Highlight found items | 55 | // Highlight found items |
56 | awesome.item = (text, input) => Awesomplete.ITEM(text, input.match(new RegExp(`[^${separator}]*$`))[0]); | 56 | awesome.item = (text, input) => Awesomplete.ITEM(text, input.match(new RegExp(`[^${separator}]*$`))[0]); |
57 | // Don't display already selected items | 57 | // Don't display already selected items |
58 | const reg = new RegExp(`/(\w+)${separator}/g`); | 58 | // WARNING: pseudo classes does not seem to work with string litterals... |
59 | const reg = new RegExp(`([^${separator}]+)${separator}`, 'g'); | ||
59 | let match; | 60 | let match; |
60 | awesome.data = (item, input) => { | 61 | awesome.data = (item, input) => { |
61 | while ((match = reg.exec(input))) { | 62 | while ((match = reg.exec(input))) { |