MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / removeAnsiCharactersFromBytes

Function removeAnsiCharactersFromBytes

app/cli/cmd/attestation_status.go:369–371  ·  view source on GitHub ↗

removeAnsiCharactersFromBytes removes ANSI escape codes from bytes slices.

(input []byte)

Source from the content-addressed store, hash-verified

367
368// removeAnsiCharactersFromBytes removes ANSI escape codes from bytes slices.
369func removeAnsiCharactersFromBytes(input []byte) []byte {
370 return ansiPattern.ReplaceAll(input, nil)
371}

Callers 1

newAttestationPushCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected