Scoping file name to path results in wrong file name #254

stefanw opened this Issue Oct 23, 2012 · 0 comments


None yet
1 participant

stefanw commented Oct 23, 2012

The file filter function in model.js replaces a bit too much in certain cases:

My path is "a" and my file name (dir name) is "aabg". This line cuts off the first letter. This is mainly because the "/" in the RegExp is optional.

I don't know what this scoping is for, but maybe it was meant to replace file.path instead of path?

Also, an empty searchstr results in a useless <b></b> in front of file names. Checking if searchstr is empty before marking a match should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment