diff --git a/build/post-compile.js b/build/post-compile.js index 3e857bfd..1bbeaa6f 100644 --- a/build/post-compile.js +++ b/build/post-compile.js @@ -4,4 +4,4 @@ var print = require("sys").print, src = require("fs").readFileSync(process.argv[2], "utf8"); // Previously done in sed but reimplemented here due to portability issues -print(src.replace(/^(\s*\*\/)(.+)/m, "$1\n$2;").replace(/([^;]*)$/, "$1;")); +print( src.replace( /^(\s*\*\/)(.+)/m, "$1\n$2" ) + ";" );