Permalink
Browse files

Skip files that does not end with .js

  • Loading branch information...
1 parent daea35e commit ded1d81b8018f3661a2afec01851ef6ce0013174 @jfd jfd committed Oct 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/test.js
View
@@ -180,7 +180,7 @@ function files(dirpath, r) {
paths.forEach(function(path) {
var p = join(dirpath, path);
stat(p).isDirectory() && r && (result = result.concat(files(p, r)));
- stat(p).isFile() && /^test/.test(basename(p)) && result.push(p);
+ stat(p).isFile() && /^test(.+).js$/.test(basename(p)) && result.push(p);
});
return result;

0 comments on commit ded1d81

Please sign in to comment.