Skip to content

Commit

Permalink
🎨 pull all lipgloss assignments for CI round 11
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed May 20, 2024
1 parent 261241f commit 1a348c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taskin.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ 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-?]*[ -/]*[@-~] *`)
re := regexp.MustCompile(` *\x1b\[[0-?]*[ -/]*[@-~]`)
// Remove the escape codes from the input
p = re.ReplaceAll(p, []byte{})
// Write the filtered input to the original writer
Expand Down

0 comments on commit 1a348c1

Please sign in to comment.