Merge 83d3f4bd21 into da71eaebd2
This commit is contained in:
commit
4c2a9b02b9
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user