Skip to content
Snippets Groups Projects
Commit bb5dd227 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

add percent wildcard symbol

parent 51e45722
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
var search = 0 var search = 0
if (this.items[0]) { if (this.items[0]) {
if (this.items[0].time < time) { if (this.items[0].time < time) {
if (/_|\*|\|/.test(q)) { if (/[_*%|]/.test(q)) {
search = 2 search = 2
} }
// Whitespace necessary in case option already exists in dropdown // Whitespace necessary in case option already exists in dropdown
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
let suggestions = response.data.a.w.map(item => ({q: q, match: item[0], label: item[0], time: time, lang: item[1]})) let suggestions = response.data.a.w.map(item => ({q: q, match: item[0], label: item[0], time: time, lang: item[1]}))
if (/_|\*|\|/.test(q)) { if (/[_*%|]/.test(q)) {
suggestions.unshift({q: q, label: q, time: time, search: 2}) suggestions.unshift({q: q, label: q, time: time, search: 2})
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment