exclude files with whitespace in name from the build
This commit is contained in:
parent
37d41ab6fd
commit
a40d9bce76
1 changed files with 1 additions and 1 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue