pull/5711/head
Edd Robinson 2016-02-16 12:15:26 +00:00 committed by Jon Seymour
parent b8bb32ecad
commit 88937ab0f7
1 changed files with 2 additions and 2 deletions

View File

@ -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++