Permalink
Browse files

fix folder scope #302

  • Loading branch information...
1 parent ec186f9 commit b45ea3bdcb4b4c165368c31da551c27c8099f31e @mikemorris mikemorris committed Mar 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 _includes/model.js
View
@@ -171,7 +171,7 @@ function getFiles(tree, path, searchstr) {
}
var match = file.path.match(new RegExp("^"+path+"(.*)$"));
if (match) {
- return !!searchstr || match[1].split('/').length <= (path ? 2 : 1);
+ return !!searchstr || match[1].split('/').length <= 1;
}
return false;
}

0 comments on commit b45ea3b

Please sign in to comment.