mirror of
https://github.com/xvvvyz/tilde.git
synced 2026-03-11 14:44:24 +00:00
regex -> indexOf
This commit is contained in:
parent
9f0d727afd
commit
615928b515
1 changed files with 1 additions and 1 deletions
|
|
@ -365,7 +365,7 @@
|
|||
|
||||
queries
|
||||
.filter(function(query) {
|
||||
var matchesQuery = query[0].match(new RegExp(input));
|
||||
var matchesQuery = query[0].indexOf(input) !== -1;
|
||||
return input && matchesQuery && input !== query[0];
|
||||
})
|
||||
.slice(0, config.suggestionsLimit).forEach(function(query) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue