suever / MATL-Online

Online Interpreter for MATL

Home Page:https://matl.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible issue with string escaping

lmendo opened this issue · comments

Hello! I found a small issue with MATL Online. It seems to sometimes trip on \ . I think it's related to character escaping. I noticed that the MATL statement " is escaped into \". The character \ is not escaped. When this character is at the very end of the code it "catches" the final double-qoute that should close the string passed to matl_runner, so the string is not closed. That's my interpretation, based on the error that shows up by running this:

https://matl.io/?code=%3A%22%405%5C3%5C&inputs=5&version=22.7.4

Good catch! I'll look into fixing this this weekend!

@lmendo Addressed this in #972, thanks for the report and let me know if you run into any other oddities. Thanks!

Thank you!