diff --git a/dist/2.x/ByteBeat.js b/dist/2.x/ByteBeat.js index df8caec..cb116a4 100644 --- a/dist/2.x/ByteBeat.js +++ b/dist/2.x/ByteBeat.js @@ -61,9 +61,9 @@ static removeCommentsAndLineBreaks(x) { // remove comments (hacky) - x = x.replace(/\/\/.*/g, ' '); - x = x.replace(/\n/g, ' '); - x = x.replace(/\/\*.*?\*\//g, ' '); + //x = x.replace(/\/\/.*/g, ' '); + //x = x.replace(/\n/g, ' '); + //x = x.replace(/\/\*.*?\*\//g, ' '); return x; } @@ -379,7 +379,7 @@ } else { // infix x = ` return function(t, i, stack, window, extra) { - return ${ByteBeatCompiler.strip(x)}; + return 0,${ByteBeatCompiler.strip(x)}; }`; } } diff --git a/dist/2.x/ByteBeat.module.js b/dist/2.x/ByteBeat.module.js index d36315a..194885e 100644 --- a/dist/2.x/ByteBeat.module.js +++ b/dist/2.x/ByteBeat.module.js @@ -55,9 +55,9 @@ class ByteBeatCompiler { static removeCommentsAndLineBreaks(x) { // remove comments (hacky) - x = x.replace(/\/\/.*/g, ' '); - x = x.replace(/\n/g, ' '); - x = x.replace(/\/\*.*?\*\//g, ' '); + //x = x.replace(/\/\/.*/g, ' '); + //x = x.replace(/\n/g, ' '); + //x = x.replace(/\/\*.*?\*\//g, ' '); return x; } @@ -373,7 +373,7 @@ class ByteBeatCompiler { } else { // infix x = ` return function(t, i, stack, window, extra) { - return ${ByteBeatCompiler.strip(x)}; + return 0,${ByteBeatCompiler.strip(x)}; }`; } }