Skip to content

Commit a266d2f

Browse files
committed
fix rpn
1 parent 7127671 commit a266d2f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ByteBeatCompiler.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export default class ByteBeatCompiler {
88

99
static removeCommentsAndLineBreaks(x) {
1010
// remove comments (hacky)
11-
//x = x.replace(/\/\/.*/g, ' ');
12-
//x = x.replace(/\n/g, ' ');
13-
//x = x.replace(/\/\*.*?\*\//g, ' ');
11+
x = x.replace(/\/\/.*/g, ' ');
12+
x = x.replace(/\n/g, ' ');
13+
x = x.replace(/\/\*.*?\*\//g, ' ');
1414
return x;
1515
}
1616

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

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

0 commit comments

Comments
 (0)