Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChatLab/ChatLab
/ escapeToken
Function
escapeToken
packages/node-runtime/src/nlp/fts-tokenizer.ts:36–38 ·
view source on GitHub ↗
(token: string)
Source
from the content-addressed store, hash-verified
34
}
35
36
function
escapeToken(token: string): string {
37
return
`
"${token.replace(/"
/g,
'""'
)}"`
38
}
39
40
/**
41
* Convert a list of user search keywords into an FTS5 MATCH expression.
Callers
1
tokenizeQueryForFts
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected