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 d16b3327f7
commit b314741ed2

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')) {