atom / fuzzaldrin

Fuzzy filtering and string scoring
MIT License
319 stars 28 forks source link

Prefer exact basename matches over shallow matches #1

Closed BinaryMuse closed 10 years ago

BinaryMuse commented 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']
kevinsawicki commented 10 years ago

I'm going to close this out for now, please reopen when it is updated if you are still working on it.