Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid tsquery output #27

Open
apoorv-mishra opened this issue Jul 26, 2024 · 1 comment
Open

Invalid tsquery output #27

apoorv-mishra opened this issue Jul 26, 2024 · 1 comment

Comments

@apoorv-mishra
Copy link

Invalid tsquery output given for the following case,

const tsquery = require('pg-tsquery');
console.log(tsquery()("env\\: *")) // env\ – note that `:` and `*` are missing
@caub
Copy link
Owner

caub commented Aug 5, 2024

Unfortunately I don't have enough time to work on this, the regexes config https://github.com/caub/pg-tsquery/blob/master/index.js#L56-L64 can probably be adjusted to handle such case

I think adding the backslash \\ in word regex should do it if you expect "env:" as a result, let us know how it goes please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants