Remove all non-ascii code from external sources

Remove all non-ascii code from external sources
This commit is contained in:
Andrew Nagy
2014-09-16 10:32:45 -07:00
parent 7f34aa8854
commit 6ad1ec436c
+2
View File
@@ -54,6 +54,8 @@ exports.compile = function (options, complete) {
bundlePath = path.join(nodeCompiler.dir, "lib", "nexe.js");
_log("bundle -> %s", bundlePath);
//Remove all non-ascii code from sources
source = source.replace(/[^\x00-\x7F]/g, "");
// same path as all the other JS files
fs.writeFile(bundlePath, source, next);
},