Trim whitespace on the search term

Trailing whitespace messes with tokenization
This commit is contained in:
Michael Lange 2018-04-20 15:04:20 -07:00
parent e0a0dbae9f
commit 50b0892c14

View file

@ -48,7 +48,7 @@ export default Mixin.create({
}),
listSearched: computed('searchTerm', 'listToSearch.[]', 'searchProps.[]', function() {
const searchTerm = this.get('searchTerm');
const searchTerm = this.get('searchTerm').trim();
if (searchTerm && searchTerm.length) {
const results = [];
if (this.get('exactMatchEnabled')) {