stripANSI remove códigos ANSI de uma string
(s string)
| 27 | |
| 28 | // stripANSI remove códigos ANSI de uma string |
| 29 | func stripANSI(s string) string { |
| 30 | re := regexp.MustCompile(`\x1b\[[0-9;]*m`) |
| 31 | return re.ReplaceAllString(s, "") |
| 32 | } |
| 33 | |
| 34 | // normalizeSpaces remove espaços extras para asserções flexíveis |
| 35 | func normalizeSpaces(s string) string { |
no outgoing calls
no test coverage detected