toFtsMatchQuery
toFtsMatchQuery(
query):string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:143
Turn arbitrary user text into a safe FTS5 MATCH expression: each whitespace-separated token is
wrapped as a quoted string and AND-ed together. This avoids FTS5 syntax errors from stray
operators (AND, *, :, parentheses, unbalanced quotes) in a user’s query while still
matching all of their words.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string