~sotirisp/kindleto

a5c5ed7825accd651435f565c4cf884e46bb9791 — Sotiris Papatheodorou 1 year, 11 months ago 286495d
Rename function parameter
1 files changed, 4 insertions(+), 4 deletions(-)

M util/filter.go
M util/filter.go => util/filter.go +4 -4
@@ 10,8 10,8 @@ import (

var sgrRegex = regexp.MustCompile(`\x1b\[([0-9]{1,3};)*[0-9]{0,3}m`)

// StripSGR returns str with Select Graphic Rendition (SGR) ANSI escape
// sequences removed.
func StripSGR(str string) string {
	return sgrRegex.ReplaceAllString(str, "")
// StripSGR returns s with Select Graphic Rendition (SGR) ANSI escape sequences
// removed.
func StripSGR(s string) string {
	return sgrRegex.ReplaceAllString(s, "")
}