AppView in a box as a Vite plugin thing hatk.dev
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: escape dots in FTS5 search queries

FTS5 interprets dots as column filter operators, so a query like
"alice.test" was parsed as "search column 'alice' for 'test'" instead
of matching the handle. Adding dot to the escape regex converts it to
"alice test" which matches correctly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+2 -2
+1 -1
packages/hatk/package.json
··· 1 1 { 2 2 "name": "@hatk/hatk", 3 - "version": "0.0.1-alpha.45", 3 + "version": "0.0.1-alpha.46", 4 4 "license": "MIT", 5 5 "bin": { 6 6 "hatk": "dist/cli.js"
+1 -1
packages/hatk/src/database/adapters/sqlite-search.ts
··· 99 99 limit: number, 100 100 offset: number, 101 101 ): Promise<Array<{ uri: string; score: number }>> { 102 - const escaped = query.replace(/['"*(){}[\]^~\\:]/g, ' ').trim() 102 + const escaped = query.replace(/['"*(){}[\]^~\\:.]/g, ' ').trim() 103 103 if (!escaped) return [] 104 104 105 105 const sql = `SELECT uri, -bm25(${shadowTable}_fts) AS score