Skip to content

Commit

Permalink
Reset JSON state as well
Browse files Browse the repository at this point in the history
  • Loading branch information
samcoe committed Nov 20, 2023
1 parent 0ca4c29 commit eb0dc3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/asciisanitizer/sanitizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func (t *Sanitizer) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err

// Reset resets the state and allows the Sanitizer to be reused.
func (t *Sanitizer) Reset() {
t.JSON = false
t.addEscape = false
}

Expand Down

0 comments on commit eb0dc3a

Please sign in to comment.