Skip to content

Fix String Escaping with Back Slash #9

@cernec1999

Description

@cernec1999

Currently, string escaping doesn't work properly with slashes (and perhaps some other cases as well). This can clearly be seen with the following code:

temp.test = "\\";
player.chat = temp.test;

Result:
Screenshot 2024-02-25 at 4 22 41 PM

The intended result is one back slash.

In addition, we get a compilation error with this payload:

temp.test = "a";
if (temp.test == "\\") {
  player.chat = "hi";
}

The response that the compiler spits back is:

malformed input at line 2: if (temp.test == "\\") {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions