MCPcopy Create free account
hub / github.com/EvoMap/evolver / stripAnsi

Function stripAnsi

test/bridge.test.js:4–8  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2const assert = require('node:assert/strict');
3
4function stripAnsi(str) {
5 // Strip CSI sequences so child stdout stays deterministic regardless of
6 // the parent shell's FORCE_COLOR state (see issue #430 and PRs #444/#445).
7 return String(str).replace(/\x1B\[[0-?]*[ -/]*[@-~]/g, '');
8}
9
10const savedEnv = {};
11const envKeys = ['EVOLVE_BRIDGE', 'OPENCLAW_WORKSPACE'];

Callers 1

runBridgeCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected