Merge branch 'main' into feature/218/Adding_timeout_to_most_commands

This commit is contained in:
Dieter Eickstaedt 2023-04-14 15:56:27 +02:00 committed by GitHub
commit 0410641d7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,9 +4,9 @@ import "regexp"
var ansiEscape = regexp.MustCompile(`\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])`)
/*
Strip will replave all blanks
*/
// Strip strips a string of any of it's ansi sequences.
func Strip(text string) string {
return ansiEscape.ReplaceAllString(text, "")
}