Skip to content

fixed escape order#4

Open
dm4tze wants to merge 1 commit into
Bacto:masterfrom
dm4tze:fixescapeescape
Open

fixed escape order#4
dm4tze wants to merge 1 commit into
Bacto:masterfrom
dm4tze:fixescapeescape

Conversation

@dm4tze

@dm4tze dm4tze commented Mar 8, 2021

Copy link
Copy Markdown

Fixed the escape order of field strings.

First " was escaped to \" in a second step \" was escaped to \\" which leads to and parsing error in influxdb.
So I just switched the escape order to first escape all \ and afterwards escaping ".
Which leads to the right escape sequence \".

This can be validated by following code:
await influxdb.write( { org, bucket, }, [ { measurement: "test2", fields: { teststring: '"', }, }, ] )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant