Skip to content

Commit

Permalink
♻️ pull older regex
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed May 20, 2024
1 parent 1a348c1 commit 69f6407
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion taskin.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ type ansiEscapeCodeFilter struct {

func (f *ansiEscapeCodeFilter) Write(p []byte) (n int, err error) {
// Corrected regular expression to match ANSI escape codes
// re := regexp.MustCompile(`\x1b\[[0-?]*[ -/]*[@-~] *`)
re := regexp.MustCompile(` *\x1b\[[0-?]*[ -/]*[@-~]`)
// Remove the escape codes from the input
p = re.ReplaceAll(p, []byte{})
Expand Down

0 comments on commit 69f6407

Please sign in to comment.