diff --git a/src/extensions/scratch3_microbit/index.js b/src/extensions/scratch3_microbit/index.js index 89a5036c7..6af8e1afb 100644 --- a/src/extensions/scratch3_microbit/index.js +++ b/src/extensions/scratch3_microbit/index.js @@ -783,7 +783,7 @@ class Scratch3MicroBitBlocks { * @return {Promise} - a Promise that resolves after a tick. */ displaySymbol (args) { - const symbol = cast.toString(args.MATRIX); + const symbol = cast.toString(args.MATRIX).replace(/\s/g, ''); const reducer = (accumulator, c, index) => { const value = (c === '0') ? accumulator : accumulator + Math.pow(2, index); return value;