MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / stripQuotes

Function stripQuotes

src/cli/custom-commands.ts:197–202  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

195}
196
197function stripQuotes(s: string): string {
198 if ((s.startsWith('"') && s.endsWith('"')) || (s.startsWith("'") && s.endsWith("'"))) {
199 return s.slice(1, -1);
200 }
201 return s;
202}
203
204/** Interpolate the template body with the user-supplied args + builtin tokens. */
205export function renderTemplate(template: string, args: string, ctx: { cwd: string }): string {

Callers 1

parseSpecFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected