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

Function escapeDriveQueryValue

apps/sim/connectors/utils.ts:102–104  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

100 * neutralizing backslashes and single quotes to prevent query injection.
101 */
102export function escapeDriveQueryValue(value: string): string {
103 return value.replace(/\\/g, '\\\\').replace(/'/g, "\\'")
104}
105
106/**
107 * Builds a Drive `q` clause matching files parented by any of the given folder

Callers 1

buildDriveParentsClauseFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected