Changed search behavior. @mrflix would be cool to combine those somehow and prioritize better matching ones?

This commit is contained in:
Thorsten Eckel 2015-06-22 10:49:58 +02:00
parent 57ef3f34d7
commit b38b98d915

View file

@ -103,7 +103,7 @@ class App.SearchableSelect extends Spine.Controller
@filterByQuery query
filterByQuery: (query) ->
regex = new RegExp(query.split('').join('.*'), 'i')
regex = new RegExp(query.split(' ').join('.*'), 'i')
@values
.addClass 'is-hidden'