diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue index 7c064de79e194d035e92ce36291935583fee6c02..385d139bddaded0355dcfcd40f4e30a52ac9f6cd 100644 --- a/src/components/Autocomplete.vue +++ b/src/components/Autocomplete.vue @@ -98,23 +98,10 @@ if (self.$refs.autocomplete.searchInput == q & self.suggesting) { let suggestions = response.data.a.w.map(item => ({q: q, match: item[0], label: item[0], time: time, lang: item[1]})) - /* - //let text_matches = response.data.a.f.map(item => ({q: q, match: item[0], label: item[0], time: time, search: 0})) - - let suggestions = [] - if( q.charAt(q.length-1) === '!') suggestions = text_matches.concat(word_matches) - else suggestions = word_matches.concat(text_matches) - */ if (/_|\*|\|/.test(q)) { suggestions.unshift({q: q, label: q, time: time, search: 2}) } - else { - // whitespace necessary because duplicates aren't allowed in the dropdown - suggestions.push({q: q+"*", label: q + ' ', time: time, search: 1}) - } - - self.items = suggestions }