Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix folder scope #302 #303

Merged
merged 1 commit into from

1 participant

Mike Morris
Mike Morris
Owner

trailing slash now included in path instead of in match

cc @dhcole @tristen @michael

Mike Morris mikemorris merged commit 2f58c9a into from
Mike Morris mikemorris deleted the 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. Mike Morris

    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
2  _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;
}
Something went wrong with that request. Please try again.