From 8da9620bfd15eef5b55cfec42572a990b952c056 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Wed, 12 Apr 2023 09:57:36 -0400 Subject: [PATCH] chore(lint): add function comment --- ansi/ansi.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ansi/ansi.go b/ansi/ansi.go index 3c38687..528c343 100644 --- a/ansi/ansi.go +++ b/ansi/ansi.go @@ -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, "") }