Trim whitespace on the search term
Trailing whitespace messes with tokenization
This commit is contained in:
parent
e0a0dbae9f
commit
50b0892c14
|
@ -48,7 +48,7 @@ export default Mixin.create({
|
||||||
}),
|
}),
|
||||||
|
|
||||||
listSearched: computed('searchTerm', 'listToSearch.[]', 'searchProps.[]', function() {
|
listSearched: computed('searchTerm', 'listToSearch.[]', 'searchProps.[]', function() {
|
||||||
const searchTerm = this.get('searchTerm');
|
const searchTerm = this.get('searchTerm').trim();
|
||||||
if (searchTerm && searchTerm.length) {
|
if (searchTerm && searchTerm.length) {
|
||||||
const results = [];
|
const results = [];
|
||||||
if (this.get('exactMatchEnabled')) {
|
if (this.get('exactMatchEnabled')) {
|
||||||
|
|
Loading…
Reference in a new issue