[Jprogramming] Possible bug in 'convert/pjson' addon
Nimp O
traws at outlook.com
Sat Mar 9 18:52:23 UTC 2019
Hello everyone,
I think I have found a bug in 'convert/pjson'.
load 'convert/pjson'
dec_pjson_ '"\\f\\b"'
\ \
I believe double backslashes should be escaped first, as in:
dec_pjson_ '"\\f\\b"'
\f\b
I fixed the issue on my end by moving the double backslash to the first substitution:
ESC=: _2[\('\';'\\';CR;'\r';LF;'\n';TAB;'\t';(8{a.);'\b';FF;'\f';'"';'\"';'/';'\/')
As opposed to
ESC=: _2[\(CR;'\r';LF;'\n';TAB;'\t';(8{a.);'\b';FF;'\f';'"';'\"';'\';'\\';'/';'\/')
Thanks
More information about the Programming
mailing list