make suggestion matching less strict
This commit is contained in:
+1
-1
@@ -361,7 +361,7 @@
|
||||
|
||||
queries
|
||||
.filter(function(query) {
|
||||
var matchesQuery = query[0].match(new RegExp('^' + input));
|
||||
var matchesQuery = query[0].match(new RegExp(input));
|
||||
return input && matchesQuery && input !== query[0];
|
||||
})
|
||||
.slice(0, config.suggestionsLimit).forEach(function(query) {
|
||||
|
||||
Reference in New Issue
Block a user