MCPcopy Create free account
hub / github.com/SteffMet/tabby-vscode-agent / escapeShellString

Function escapeShellString

src/utils/escapeShellString.ts:1–8  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

1export function escapeShellString(raw: string): string {
2 return raw
3 .replace(/\\/g, '\\\\')
4 .replace(/"/g, '\\"')
5 .replace(/\$/g, '\\$')
6 .replace(/`/g, '\\`')
7 .replace(/\n/g, '\\n');
8}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected