File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/addons/addons/custom-block-shape Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,13 @@ export default async function ({ addon, console }) {
22
22
while ( i + expected <= tokens . length && ! / ^ [ a - z ] $ / i. test ( tokens [ i ] ) ) {
23
23
for ( let j = 0 ; j < expected ; j ++ ) {
24
24
let val = parseFloat ( tokens [ i + j ] ) ;
25
- if ( isNaN ( val ) ) throw new Error ( `Invalid number '${ tokens [ i + j ] } '` ) ;
25
+ if ( isNaN ( val ) ) {
26
+ if ( tokens [ i + j ] === "z" ) {
27
+ result . push ( "z" ) ;
28
+ break ;
29
+ }
30
+ continue ;
31
+ }
26
32
27
33
if ( xIndexes . includes ( j ) ) val *= scaleX ;
28
34
else val *= scaleY ;
@@ -31,7 +37,7 @@ export default async function ({ addon, console }) {
31
37
i += expected ;
32
38
}
33
39
}
34
- return result . join ( ' ' ) ;
40
+ return result . join ( " " ) ;
35
41
}
36
42
37
43
function updateAllBlocks ( ) {
You can’t perform that action at this time.
0 commit comments