From 88937ab0f73c8e6ba75566ead88dbeca4e8c30c7 Mon Sep 17 00:00:00 2001 From: Edd Robinson Date: Tue, 16 Feb 2016 12:15:26 +0000 Subject: [PATCH] Fixes #5664 --- models/points.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/points.go b/models/points.go index 394b8f6997..6df1b22184 100644 --- a/models/points.go +++ b/models/points.go @@ -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++