chore(lint): add function comment

This commit is contained in:
Maas Lalani 2023-04-12 09:57:36 -04:00
parent 5887a10fa0
commit 8da9620bfd
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -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, "")
}