MCPcopy Create free account
hub / github.com/chhoumann/quickadd / finish

Function finish

src/utils/extractScriptFromMarkdown.ts:95–100  ·  view source on GitHub ↗
(body: string, linesBeforeBody: number)

Source from the content-addressed store, hash-verified

93}
94
95function finish(body: string, linesBeforeBody: number): ScriptExtractionResult {
96 if (body.trim().length === 0) {
97 return { code: "", error: EMPTY_FENCE_ERROR };
98 }
99 return { code: "\n".repeat(linesBeforeBody) + body };
100}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected