Added regex quoting of query.
This commit is contained in:
parent
182f97ce7d
commit
dff4a03208
1 changed files with 1 additions and 0 deletions
|
@ -163,6 +163,7 @@ class App.SearchableSelect extends Spine.Controller
|
|||
@filterByQuery @query
|
||||
|
||||
filterByQuery: (query) ->
|
||||
query = escapeRegExp(query)
|
||||
regex = new RegExp(query.split(' ').join('.*'), 'i')
|
||||
|
||||
@option_items
|
||||
|
|
Loading…
Reference in a new issue