-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[moonsharp] Unescaped control string error when using decode() and - is in a string #37
Comments
I'm not reproducing your problem...
|
yeah |
Oh yes, there is probably a difference of behavior or implementation somewhere... The error message comes from lunajson : Can you change the line 341 of lunajson.decode to replace decode_error("unescaped control string") by decode_error("unescaped control string" .. " ; str=" .. tostring(str) .. " ; f_str_ctrl_pat=" .. tostring(f_str_ctrl_pat) .. " ;" ) The error will show the value of |
Thank you for reporting the issue. Many thanks to @tst2005 too. Could you report lua version? Perhaps See lunajson/src/lunajson/decoder.lua Lines 15 to 20 in 3d10600
|
OK maybe this issue is relevant. moonsharp-devs/moonsharp#29 Could you modify the version check and test again? If it works fine, I'll merge a PR. |
for example:
lunajson.decode('{"file0001.png":[0, 0]}')
worksbut
lunajson.decode('{"file-0001.png":[0, 0]}')
throws an errorif this is a thing with json then please forgive me for being stupid
The text was updated successfully, but these errors were encountered: