Update points.go

pull/4436/head
Sean Beckett 2015-10-13 16:55:20 -07:00
parent 8f79ce89aa
commit 7151116016
1 changed files with 2 additions and 2 deletions

View File

@ -459,12 +459,12 @@ func scanFields(buf []byte, i int) (int, []byte, error) {
// check for "... =123" but allow "a\ =123" // check for "... =123" but allow "a\ =123"
if buf[i-1] == ' ' && buf[i-2] != '\\' { if buf[i-1] == ' ' && buf[i-2] != '\\' {
return i, buf[start:i], fmt.Errorf("missing field name") return i, buf[start:i], fmt.Errorf("missing field key")
} }
// check for "...a=123,=456" but allow "a=123,a\,=456" // check for "...a=123,=456" but allow "a=123,a\,=456"
if buf[i-1] == ',' && buf[i-2] != '\\' { if buf[i-1] == ',' && buf[i-2] != '\\' {
return i, buf[start:i], fmt.Errorf("missing field name") return i, buf[start:i], fmt.Errorf("missing field key")
} }
// check for "... value=" // check for "... value="