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:
@@ -29,10 +29,6 @@ var (
|
||||
)
|
||||
|
||||
stringFieldEscaper = strings.NewReplacer(
|
||||
"\t", `\t`,
|
||||
"\n", `\n`,
|
||||
"\f", `\f`,
|
||||
"\r", `\r`,
|
||||
`"`, `\"`,
|
||||
`\`, `\\`,
|
||||
)
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user