MCPcopy Create free account
hub / github.com/continuedev/continue / sanitizeShellArgument

Function sanitizeShellArgument

core/util/sanitization.ts:25–28  ·  view source on GitHub ↗
(arg: string)

Source from the content-addressed store, hash-verified

23 * - Variable expansion (`$VAR`)
24 */
25export function sanitizeShellArgument(arg: string): string {
26 const result = quote([arg]);
27 return typeof result === "string" ? result : arg;
28}
29
30/**
31 * Validates that a repository name/URL doesn't contain malicious patterns.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected