MCPcopy Index your code
hub / github.com/MatterAIOrg/OrbCode / clean

Function clean

test-ui.mjs:67–67  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

65
66const sleep = (ms) => new Promise((r) => setTimeout(r, ms))
67const clean = (s) => s.replace(/\x1b\[[0-9;?]*[a-zA-Z]/g, "")
68
69function assertContains(label, needle) {
70 const ok = clean(stdout.output).includes(needle)

Callers 2

assertContainsFunction · 0.85
test-ui.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected