Skip to content

Commit

Permalink
Merge pull request #303 from prose/folder-scope
Browse files Browse the repository at this point in the history
fix folder scope #302
  • Loading branch information
mikemorris committed Mar 28, 2013
2 parents ec186f9 + b45ea3b commit 2f58c9a
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 2f58c9a

Please sign in to comment.