We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c6c992 commit 451a458Copy full SHA for 451a458
src/lib/ruby-generator/microbit.js
@@ -32,7 +32,7 @@ export default function (Generator) {
32
return `microbit.display_text(${text})\n`;
33
};
34
35
- Generator.microbit_displayClear = function (block) {
+ Generator.microbit_displayClear = function () {
36
return `microbit.clear_display\n`;
37
38
@@ -86,7 +86,7 @@ export default function (Generator) {
86
Generator.matrix = function (block) {
87
let matrix = Generator.getFieldValue(block, 'MATRIX') || '0000000000000000000000000';
88
matrix = matrix.replace(/0/g, ' ');
89
- matrix = matrix.match(/.{5}/g).map(s => Generator.quote_(s + ':'));
+ matrix = matrix.match(/.{5}/g).map(s => Generator.quote_(`${s}:`));
90
return [matrix.join('\n'), Generator.ORDER_ATOMIC];
91
92
0 commit comments