mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
lib/protoparser/influx: make sure that escaped whitespace can be put in measurement, tag names and field names
This commit is contained in:
parent
d788876a7a
commit
7869d38043
@ -344,15 +344,15 @@ func TestRowsUnmarshalSuccess(t *testing.T) {
|
||||
})
|
||||
|
||||
// Escape chars
|
||||
f(`fo\,bar\=baz,x\=\b=\\a\,\=\q\ \\\a\=\,=4.34`, &Rows{
|
||||
f(`fo\,bar\=b\ az,x\=\ b=\\a\,\=\q\ \\\a\ b\=\,=4.34`, &Rows{
|
||||
Rows: []Row{{
|
||||
Measurement: `fo,bar=baz`,
|
||||
Measurement: `fo,bar=b az`,
|
||||
Tags: []Tag{{
|
||||
Key: `x=\b`,
|
||||
Key: `x= b`,
|
||||
Value: `\a,=\q `,
|
||||
}},
|
||||
Fields: []Field{{
|
||||
Key: `\\a=,`,
|
||||
Key: `\\a b=,`,
|
||||
Value: 4.34,
|
||||
}},
|
||||
}},
|
||||
|
Loading…
Reference in New Issue
Block a user