Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix folder scope #302 #303

Merged
merged 1 commit into from

1 participant

@mikemorris
Owner

trailing slash now included in path instead of in match

cc @dhcole @tristen @michael

@mikemorris mikemorris merged commit 2f58c9a into gh-pages
@mikemorris mikemorris deleted the folder-scope branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 28, 2013
  1. @mikemorris

    fix folder scope #302

    mikemorris authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  _includes/model.js
View
2  _includes/model.js
@@ -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;
}
Something went wrong with that request. Please try again.