You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// re is the regular expression used for removing ANSI colors.
//
// I wanted to switch to my stripansi package (github.com/MatusOllah/stripansi) but I'm worried that I might get backlash from it for adding another dependency :/
// Go check it out, it's really awesome ;)
var re = regexp.MustCompile("[\u001B\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))")
// stripANSI removes ANSI escape sequences from the provided bytes.Buffer.