From b81ba599db281f6353d1dc340cf6bbea6b12ff70 Mon Sep 17 00:00:00 2001 From: Kreg Hanning Date: Tue, 25 Sep 2018 10:47:33 -0400 Subject: [PATCH] =?UTF-8?q?Trim=20whitespace=20in=20"display=20[=E2=99=A1]?= =?UTF-8?q?"=20input=20field=20(#1598)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/extensions/scratch3_microbit/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;