Fix several influx parser issues (#5484)

- Add line/column position
- Allow handlers to return errors
- Fix tag value escaping
- Allow newline in string fields
This commit is contained in:
Daniel Nelson
2019-02-26 10:48:41 -08:00
committed by GitHub
parent 8da6846e53
commit 04f3c4321c
8 changed files with 25417 additions and 17316 deletions

View File

@@ -29,10 +29,6 @@ var (
)
stringFieldEscaper = strings.NewReplacer(
"\t", `\t`,
"\n", `\n`,
"\f", `\f`,
"\r", `\r`,
`"`, `\"`,
`\`, `\\`,
)

View File

@@ -335,7 +335,7 @@ var tests = []struct {
time.Unix(0, 0),
),
),
output: []byte("cpu value=\"x\\ny\" 0\n"),
output: []byte("cpu value=\"x\ny\" 0\n"),
},
{
name: "need more space",