Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Feb 4, 2025
1 parent 3bf5615 commit 2dbb085
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/2.x/ByteBeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -379,7 +379,7 @@
} else { // infix
x = `
return function(t, i, stack, window, extra) {
return ${ByteBeatCompiler.strip(x)};
return 0,${ByteBeatCompiler.strip(x)};
}`;
}
}
Expand Down
8 changes: 4 additions & 4 deletions dist/2.x/ByteBeat.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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)};
}`;
}
}
Expand Down

0 comments on commit 2dbb085

Please sign in to comment.