(str string)
| 86 | var reStripAnsi = regexp.MustCompile("[\u001B\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))") |
| 87 | |
| 88 | func stripAnsiString(str string) string { |
| 89 | // the byte version doesn't strip correctly |
| 90 | return reStripAnsi.ReplaceAllString(str, "") |
| 91 | } |
| 92 | |
| 93 | type cliSupport struct { |
| 94 | cfg csconfig.Getter |
no outgoing calls
no test coverage detected
searching dependent graphs…