Skip to content

Conversation

thekeura
Copy link

There was a bug on Scratch that breaks the Blockly XML when a character such as "\u0015" is entered, effectively making the project's contents invisible. This partially patches that, although I couldn't get it to work in all cases.

) {
safe.push(charCode);
} else {
safe.push('H'.charCodeAt(0)) // ugly fix

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are any of these visible? If not then maybe don't push here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are visible characters. It can be triggered by inputting the corresponding character as a variable name, costume name, etc.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if it's ugly, then wouldn't it be better to have them not show up at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants