Remove all non-ascii code from external sources
Remove all non-ascii code from external sources
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user