mirror of
https://github.com/charmbracelet/gum
synced 2024-06-29 02:30:07 +02:00
Merge branch 'main' into feature/218/Adding_timeout_to_most_commands
This commit is contained in:
commit
0410641d7d
|
@ -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, "")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue