Skip to content

Commit 4aa28c0

Browse files
committed
Make blocktype work with numbers
1 parent e8895d7 commit 4aa28c0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/main/js/modules/drone/blocktype.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,18 @@ var bitmaps = {
294294
' '+
295295
' '+
296296
' ',
297+
298+
'(': ' # '+
299+
' # '+
300+
' # '+
301+
' # '+
302+
' # ',
303+
304+
')': ' # '+
305+
' # '+
306+
' # '+
307+
' # '+
308+
' # ',
297309

298310
' ':' '+
299311
' '+
@@ -352,7 +364,7 @@ function blocktype( message, fg, bg, immediate ) {
352364
if ( typeof bg != 'undefined' ) {
353365
bmbg = this.getBlockIdAndMeta( bg );
354366
}
355-
lines = message.split( '\n' );
367+
lines = (''+ message).split( '\n' );
356368
lineCount = lines.length;
357369

358370
for ( h = 0; h < lineCount; h++) {

0 commit comments

Comments
 (0)