mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
a23b04c8fa
When a user query produces a pg-tsquery output ending in mixed `&` and `\` characters (e.g. `"plugins"&\`), stripping them with separate single-char regexes in a fixed order could leave a dangling `&` operator, causing Postgres to reject the query with "no operand in tsquery". Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>