10 lines
162 B
Go
10 lines
162 B
Go
|
package lib
|
||
|
|
||
|
import "regexp"
|
||
|
|
||
|
var ansiRegex = regexp.MustCompile(`\x1b\[[0-9;]*m`)
|
||
|
|
||
|
func StripANSI(s string) string {
|
||
|
return ansiRegex.ReplaceAllString(s, "")
|
||
|
}
|