exclude files with whitespace in name from the build

This commit is contained in:
nightwing 2013-02-16 23:06:38 +04:00
commit a40d9bce76

View file

@ -236,7 +236,7 @@ function jsFileList(path, filter) {
filter = /_test/;
return fs.readdirSync(path).map(function(x) {
if (x.slice(-3) == ".js" && !filter.test(x))
if (x.slice(-3) == ".js" && !filter.test(x) && !/\s/.test(x))
return x.slice(0, -3);
}).filter(function(x){ return !!x });
}