This commit is contained in:
r266-tech 2026-01-30 11:55:30 +00:00 committed by GitHub
commit 4c2a9b02b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@ export type HybridKeywordResult = {
export function buildFtsQuery(raw: string): string | null {
const tokens =
raw
.match(/[A-Za-z0-9_]+/g)
.match(/[\p{L}\p{N}_]+/gu)
?.map((t) => t.trim())
.filter(Boolean) ?? [];
if (tokens.length === 0) return null;