Skip to content

Projects made in 2.0 that contain the text "\b" anywhere in the project are broken. #5299

@GreenScripter

Description

@GreenScripter

Expected Behavior

Projects made in 2.0 that contain the text "\b" anywhere in the code should load and contain "\b" in 3.0 as well

Actual Behavior

The scratch 3.0 editor crashes and fails to load the project.

Steps to Reproduce

If you take any block (for example the "say [text]" block) and type the characters "\b" in the text field, save it and upload it to scratch 3.0 the project will fail to load. This appears to work fine with other characters instead of b. Note that this is actually the two different characters "\" and "b" which in the project.json from the 2.0 project file is encoded as "\\b"
Typing "\b" anywhere in a 3.0 project will also make it fail to save.

Operating System and Browser

Mac 10.14, modern Chrome

This issue actually appears in 3.0 projects as well, I didn't notice until I was editing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions