Skip to content

fix: escape FTS5 special chars in search queries#26

Merged
spences10 merged 2 commits intomainfrom
fix/fts5-special-chars
Feb 3, 2026
Merged

fix: escape FTS5 special chars in search queries#26
spences10 merged 2 commits intomainfrom
fix/fts5-special-chars

Conversation

@spences10
Copy link
Owner

Summary

Test plan

  • Existing tests pass
  • New tests for / (slash), - (hyphen), and prefix with special chars
  • Manual test: search "Downloads/transcripts" no longer throws FTS5 syntax error

🤖 Generated with Claude Code

spences10 and others added 2 commits February 3, 2026 19:15
Fixes #23 - searches with `/`, `-`, and other special chars now work.
Added escape_fts5_query() that quotes terms containing special chars
while preserving prefix (*) and phrase ("") search functionality.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@spences10 spences10 merged commit 90c0f8f into main Feb 3, 2026
1 check passed
@spences10 spences10 deleted the fix/fts5-special-chars branch February 3, 2026 19:19
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

Successfully merging this pull request may close these issues.

FTS search fails with "/" and other special characters in query

1 participant