aboutsummaryrefslogtreecommitdiffhomepage
path: root/assets/default/js
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-11-05 19:08:38 +0100
committerArthurHoaro <arthur@hoa.ro>2020-11-05 19:14:17 +0100
commit8a1ce1da15fdbae99b24700b06f2008c7a657603 (patch)
tree8e8ea3ba2dd4bc9b25e4cf7e23a17838df3cc396 /assets/default/js
parentdf9aac5b6406bf192f2e4e0987e25d0de88480df (diff)
downloadShaarli-8a1ce1da15fdbae99b24700b06f2008c7a657603.tar.gz
Shaarli-8a1ce1da15fdbae99b24700b06f2008c7a657603.tar.zst
Shaarli-8a1ce1da15fdbae99b24700b06f2008c7a657603.zip
ESLint
Diffstat (limited to 'assets/default/js')
-rw-r--r--assets/default/js/base.js3
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))) {