KatrinaHoffert / EatSafe

An app for finding safe places to eat
Other
2 stars 2 forks source link

Search queries with multiple spaces in a row fail #175

Closed KatrinaHoffert closed 9 years ago

KatrinaHoffert commented 9 years ago

It's because a query like "foo bar" becomes the TSQUERY "foo & & bar". Need to collapse the spaces. Should be as simple as replacing " +" with " " with regex.

magnusandy commented 9 years ago

all multiple spaces are now replaces with a single one