Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 108 forks source link

Is there a way to match strings with spaces? #38

Closed queso closed 10 years ago

queso commented 10 years ago

The matching seems to do a split on spaces and only submit the last bit after the space...

mizzao commented 10 years ago

No, I don't think so, because whitespace is used to separate tokens from each other.

The only way to match strings with spaces is to use the behavior of whole-field autocompletion. See #4, #27, and #33.

If you think you have a way of addressing this, feel free to send a PR.

mizzao commented 10 years ago

This most recent commit matches the whole field in token-less mode.

For example, go to http://autocomplete.meteor.com and type "ASBESTOS FR..." and note that it does not match "FREE FOOD".