MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / getEscapedCommand

Function getEscapedCommand

out/cli.cjs:66753–66753  ·  view source on GitHub ↗
(file, args)

Source from the content-addressed store, hash-verified

66751var DOUBLE_QUOTES_REGEXP = /"/g;
66752var escapeArg = (arg) => {
66753 if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
66754 return arg;
66755 }
66756 return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`;

Callers 2

execaFunction · 0.85
execaSyncFunction · 0.85

Calls 2

normalizeArgsFunction · 0.85
escapeArgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…