Skip to content

Commit

Permalink
fix rpn
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Feb 8, 2025
1 parent 7127671 commit a266d2f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ByteBeatCompiler.js
Original file line number Diff line number Diff line change
@@ -8,9 +8,9 @@ export default 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;
}

@@ -331,7 +331,6 @@ export default class ByteBeatCompiler {
}
}

x = ByteBeatCompiler.removeCommentsAndLineBreaks(x);
// Translate a few things.
function replacer(str, obj, p1, name) {
return Object.prototype.hasOwnProperty.call(obj, p1) ? (name + p1) : str;

0 comments on commit a266d2f

Please sign in to comment.