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

Function stripBackticks

apps/docs/scripts/docs-catalog-lib.mjs:133–138  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

131}
132
133function stripBackticks(value) {
134 // Remove every backtick, not just leading/trailing. Markdown cells like
135 // `` `path/to/script.sh` (then X) `` carry an inline closing backtick that a
136 // start/end-only strip would leave on the token after a whitespace split.
137 return value.replace(/`/gu, "").trim();
138}
139
140function parseCommandName(cell, runner) {
141 const stripped = stripBackticks(cell);

Callers 2

parseCommandNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected