MCPcopy Index your code
hub / github.com/codeaashu/claude-code / psQuote

Function psQuote

src/utils/deepLink/terminalLauncher.ts:536–538  ·  view source on GitHub ↗

* PowerShell single-quoted string. The ONLY special sequence is '' for a * literal single quote — no backtick escapes, no variable expansion, no * subexpressions. This is the safe PowerShell quoting; double-quoted * strings interpret `n `t `" etc. and can be escaped out of.

(s: string)

Source from the content-addressed store, hash-verified

534 * strings interpret `n `t `" etc. and can be escaped out of.
535 */
536function psQuote(s: string): string {
537 return `'${s.replace(/'/g, "''")}'`
538}
539
540/**
541 * cmd.exe argument quoting. cmd.exe does NOT use CommandLineToArgvW-style

Callers 1

launchWindowsTerminalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected