MCPcopy Create free account
hub / github.com/devspace-sh/devspace / sanitizeTerminalLine

Function sanitizeTerminalLine

e2e/tests/terminal/terminal.go:253–263  ·  view source on GitHub ↗
(line string)

Source from the content-addressed store, hash-verified

251}
252
253func sanitizeTerminalLine(line string) string {
254 line = strings.Map(func(r rune) rune {
255 if r < 32 || r == 127 {
256 return -1
257 }
258
259 return r
260 }, line)
261
262 return strings.TrimSpace(line)
263}

Callers 1

lastTerminalPodNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected