mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 16:38:27 +00:00
fix (memory/search): support unicode tokens in FTS query builder
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user