From 3317e2cae292a18dbd9adcc8e888100b3471bfba Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Thu, 13 Jan 2022 11:52:32 +0100
Subject: [PATCH] allow suggest in truncated search

---
 src/components/Autocomplete.vue | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue
index 21f40479..cf464eca 100644
--- a/src/components/Autocomplete.vue
+++ b/src/components/Autocomplete.vue
@@ -150,7 +150,7 @@
         }
 
         this.suggesting = true
-        if (!/[_*%|]/.test(q)) {
+        
           let self = this
           let params = {q, dict: self.get_lang(), n: 6, dform: 'int', meta: 'n', include: "e", wc: self.$parent.pos_selected}
           self.api.get('suggest?', {params})
@@ -175,10 +175,7 @@
                         }
                     })
 
-        }
-        else {
-          this.items = [{q, match: q, time}]
-        }
+        
 
 
       },
-- 
GitLab