1
0
mirror of https://github.com/json-iterator/go.git synced 2025-01-23 18:54:21 +02:00
This commit is contained in:
Tao Wen 2016-12-17 17:38:33 +08:00
commit c7d0dd5b66

View File

@ -156,7 +156,7 @@ func (iter *Iterator) nextToken() byte {
for i := iter.head; i < iter.tail; i++ {
c := iter.buf[i]
switch c {
case ' ', '\n', '\t', 'r':
case ' ', '\n', '\t', '\r':
continue
}
iter.head = i+1