MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / stripAnsiCodes

Function stripAnsiCodes

freebuff/cli/smoke-test.test.ts:33–36  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

31// ---------------------------------------------------------------------------
32
33function stripAnsiCodes(str: string): string {
34 // eslint-disable-next-line no-control-regex
35 return str.replace(/\x1B\[[0-9;]*[a-zA-Z]/g, '')
36}
37
38function isTmuxAvailable(): boolean {
39 if (process.env.CI === 'true' || process.env.CI === '1') return false

Callers 1

smoke-test.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected