Skip to content

Commit

Permalink
fix folder scope #302
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorris committed Mar 28, 2013
1 parent ec186f9 commit b45ea3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/model.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit b45ea3b

Please sign in to comment.