MCPcopy Create free account
hub / github.com/massCodeIO/massCode / shellDoubleQuote

Function shellDoubleQuote

src/renderer/components/http/requestPreview.ts:139–145  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

137}
138
139function shellDoubleQuote(value: string): string {
140 return `"${value
141 .replaceAll('\\', '\\\\')
142 .replaceAll('"', '\\"')
143 .replaceAll('$', '\\$')
144 .replaceAll('`', '\\`')}"`
145}
146
147function shellAnsiCString(value: string): string {
148 return `$'${value.replaceAll('\\', '\\\\').replaceAll('\'', '\\\'')}'`

Callers 1

buildCurlPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected