MCPcopy
hub / github.com/google/zx / quotePowerShell

Function quotePowerShell

src/util.ts:94–99  ·  view source on GitHub ↗
(arg: string)

Source from the content-addressed store, hash-verified

92}
93
94export function quotePowerShell(arg: string): string {
95 if (arg === '') return `''`
96 if (/^[\w/.\-]+$/.test(arg)) return arg
97
98 return `'` + arg.replace(/'/g, "''") + `'`
99}
100
101export type Duration =
102 | number

Callers 2

globals.test-d.tsFile · 0.85
util.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…