mirror of
https://github.com/json-iterator/go.git
synced 2025-04-01 21:24:21 +02:00
#3 fix nextToken
This commit is contained in:
parent
d0f45c663f
commit
e38192e48f
@ -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
|
||||
@ -913,4 +913,4 @@ func (iter *Iterator) skipUntilBreak() {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user