Skip to content

Commit

Permalink
chore(lint): add function comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Apr 12, 2023
1 parent 5887a10 commit 8da9620
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ansi/ansi.go
Expand Up @@ -4,6 +4,7 @@ import "regexp"

var ansiEscape = regexp.MustCompile(`\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])`)

// Strip strips a string of any of it's ansi sequences.
func Strip(text string) string {
return ansiEscape.ReplaceAllString(text, "")
}

0 comments on commit 8da9620

Please sign in to comment.