MCPcopy Index your code
hub / github.com/simstudioai/sim / escapeCql

Function escapeCql

apps/sim/connectors/confluence/confluence.ts:14–16  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

12 * Escapes a value for use inside CQL double-quoted strings.
13 */
14export function escapeCql(value: string): string {
15 return value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')
16}
17
18/**
19 * Builds a CQL clause restricting content to the given space keys.

Callers 3

confluence.test.tsFile · 0.90
buildSpaceClauseFunction · 0.85
listDocumentsViaCqlFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected