From 2271f0c75a570758902686c00c2a1661ef02db4c Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Thu, 24 Jul 2014 21:03:01 +0900 Subject: [PATCH] rename --- matchers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matchers.go b/matchers.go index 1393873..ea52179 100644 --- a/matchers.go +++ b/matchers.go @@ -9,11 +9,11 @@ import ( ) // Global var used to strips ansi sequences -var ansiStrips = regexp.MustCompile("\x1B\\[(?:[0-9]{1,2}(?:;[0-9]{1,2})?)*[a-zA-Z]") +var reANSIEscapeChars = regexp.MustCompile("\x1B\\[(?:[0-9]{1,2}(?:;[0-9]{1,2})?)*[a-zA-Z]") // Function who strips ansi sequences func stripANSISequence(s string) string { - return ansiStrips.ReplaceAllString(s, "") + return reANSIEscapeChars.ReplaceAllString(s, "") } // Match defines the interface for matches. Note that to make drawing easier,