pg-tsquery
pg-tsquery copied to clipboard
Ending or starting query in `'` character produces invalid syntax
With the { singleQuoteReplacement: "&" } option the search term one' or 'one
…produces the invalid syntax:
one&
…I think the rule is too simplistic here?
Would using the option added in https://github.com/caub/pg-tsquery/issues/14 help here?
Sorry, edited the report – the issue is caused by that option.
We added this singleQuoteReplacement option lately, and I added a comment about it that it should not be a reserved word
For example does it work for you to use a space ' ' or a a '+'?