Fixes #5664
parent
b8bb32ecad
commit
88937ab0f7
|
@ -888,8 +888,8 @@ func scanTo(buf []byte, i int, stop byte) (int, []byte) {
|
|||
break
|
||||
}
|
||||
|
||||
// reached end of block?
|
||||
if buf[i] == stop && buf[i-1] != '\\' {
|
||||
// Reached unescaped stop value?
|
||||
if buf[i] == stop && (i == 0 || buf[i-1] != '\\') {
|
||||
break
|
||||
}
|
||||
i++
|
||||
|
|
Loading…
Reference in New Issue