MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / parseCommandName

Function parseCommandName

apps/docs/scripts/docs-catalog-lib.mjs:140–149  ·  view source on GitHub ↗
(cell, runner)

Source from the content-addressed store, hash-verified

138}
139
140function parseCommandName(cell, runner) {
141 const stripped = stripBackticks(cell);
142 const prefix = `${runner} `;
143
144 if (stripped.startsWith(prefix)) {
145 return stripped.slice(prefix.length).trim();
146 }
147
148 return stripped;
149}
150
151function firstSentence(paragraph) {
152 const collapsed = paragraph.replace(/\s+/gu, " ").trim();

Callers 1

Calls 1

stripBackticksFunction · 0.85

Tested by

no test coverage detected