This PR fixes the issue that jiffy cannot decode strings that contains \n (int 10) \r (int 13) characters:
(emqx@127.0.0.1)4> jiffy:decode(<<"[\"a\n\"]">>, []).
** exception error: {4,invalid_string}
in function jiffy:decode/2 (/Users/emqer/code/emqx-rel/_checkouts/jiffy/src/jiffy.erl, line 71)
This PR fixes the issue that jiffy cannot decode strings that contains
\n
(int 10)\r
(int 13) characters:The example above should return
[<<"a\n">>]
.