mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Trim whitespace on the search term
Trailing whitespace messes with tokenization
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user