matteodem / meteor-easy-search

Easy-to-use search for Meteor with Blaze Components
MIT License
437 stars 68 forks source link

Searching dot or "." displays all document in collection? #491

Closed dominicarrojado closed 7 years ago

dominicarrojado commented 8 years ago

Searching dot or "." displays all document in collection?

matteodem commented 8 years ago

What is the expected behavior?

dominicarrojado commented 8 years ago

Result should return only with the strings that have the character "." within but it displays all documents. Also these are some other characters: $ \ + ^ ? | . Are they like illegal searches?

matteodem commented 8 years ago

Right now it's creating a mongodb selector out of the search string, maybe it might make sense to escape . and other special characters.