sensebox / React-Ardublockly

This repository contains the new senseBox learn- and programming environment powered by google Blockly and React
Apache License 2.0
2 stars 7 forks source link

[Blockly][Codegenerator] Prevent use of space in variable names #355

Closed mariopesch closed 6 days ago

mariopesch commented 2 weeks ago

Block description

You can create variables with a space in the name such as:

image

The result is a compiler error.

Expected block behaviour

Prevent the use of space in variable names. Either show an error during the creation process or automatically replace the space with an underscore.

PaulaScharf commented 6 days ago

Btw the issue also arises with other characters, not just spaces (" ' & * ...)

mariopesch commented 6 days ago

closed via #360