MCPcopy Create free account
hub / github.com/encodeous/nylon / StripAnsi

Function StripAnsi

e2e/logging.go:17–19  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

15var ansiRegex = regexp.MustCompile(`\x1b\[[0-9;]*[a-zA-Z]`)
16
17func StripAnsi(s string) string {
18 return ansiRegex.ReplaceAllString(s, "")
19}
20
21type LogSource string
22

Callers 3

AcceptMethod · 0.85
WriteMethod · 0.85
ExecMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected