mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
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>