Closed BinaryMuse closed 10 years ago
The idea is to prefer an exact basename match, even if that match is deeper/has more segments. The test demonstrates:
it "prefers basename matches over shallow matches", -> expect(filter(['foo/quix.js', 'foo/bar/baz/quix'], 'quix', maxResults: 1)).toEqual ['foo/bar/baz/quix']
I'm going to close this out for now, please reopen when it is updated if you are still working on it.
The idea is to prefer an exact basename match, even if that match is deeper/has more segments. The test demonstrates: