Skip to content

Commit

Permalink
UTF8 runes do not contain 0x0A
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Aug 22, 2019
1 parent b948b7a commit 8ef046b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ func TrimWhitespace(b []byte) []byte {

// ReplaceMultipleWhitespace replaces character series of space, \n, \t, \f, \r into a single space or newline (when the serie contained a \n or \r).
func ReplaceMultipleWhitespace(b []byte) []byte {
// TODO: does not work with UTF8 runes that contain \x0A for example
j := 0
prevWS := false
hasNewline := false
Expand Down

0 comments on commit 8ef046b

Please sign in to comment.