MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / applyChomp

Function applyChomp

src/skill-manager.ts:282–292  ·  view source on GitHub ↗
(value: string, mode: "strip" | "clip" | "keep")

Source from the content-addressed store, hash-verified

280}
281
282function applyChomp(value: string, mode: "strip" | "clip" | "keep"): string {
283 if (mode === "keep") {
284 return value;
285 }
286
287 if (mode === "strip") {
288 return value.replace(/\n+$/g, "");
289 }
290
291 return value.replace(/\n*$/g, "");
292}
293
294function stripWrappingQuotes(value: string): string {
295 if (

Callers 1

readBlockScalarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected