mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
rename
This commit is contained in:
parent
374f85ebde
commit
2271f0c75a
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue