Closed ntzm closed 1 year ago
I am logging polylines which include the character \. When I try to log them, it escapes the backslash as it's JSON encoding the value. e.g.
\
pino.info({ polyline: '\\' })
outputs polyline: "\\", when it would be more correct to output polyline: "\"
polyline: "\\"
polyline: "\"
An extra \ can mess up the shape of the polyline e.g.
{o_uIzhvS?P_@VcAr@u@j@[\\QDKAUQISb@sDAe@Ai@G[GCWC_@KSIWSAQ
{o_uIzhvS?P_@VcAr@u@j@[\QDKAUQISb@sDAe@Ai@G[GCWC_@KSIWSAQ
Thanks :)
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
I am logging polylines which include the character
\
. When I try to log them, it escapes the backslash as it's JSON encoding the value. e.g.outputs
polyline: "\\"
, when it would be more correct to outputpolyline: "\"
An extra
\
can mess up the shape of the polyline e.g.Thanks :)