Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Wrongly ordered candidates with exact file name match #18

Open
elmariofredo opened this issue Jun 24, 2015 · 5 comments
Open

Wrongly ordered candidates with exact file name match #18

elmariofredo opened this issue Jun 24, 2015 · 5 comments
Labels

Comments

@elmariofredo
Copy link

var candidates, filter, results;

filter = require('fuzzaldrin').filter;

candidates = ['test/components/core/application/applicationPageStateServiceSpec.js', 'test/components/core/view/components/actions/actionsServiceSpec.js'];

results = filter(candidates, 'actionsServiceSpec.js');

console.log(results);

This is what I get

[ 'test/components/core/application/applicationPageStateServiceSpec.js',
  'test/components/core/view/components/actions/actionsServiceSpec.js' ]

This is what I expect

[ 'test/components/core/view/components/actions/actionsServiceSpec.js',
  'test/components/core/application/applicationPageStateServiceSpec.js' ]

as actionsServiceSpec.js is exact file name match

@winstliu winstliu added the bug label Jun 24, 2015
@walles
Copy link

walles commented Jul 6, 2015

PR #15 may or may not resolve this.

@elmariofredo
Copy link
Author

confirmed #15 is fixing my issue. Thanks

@mnquintana
Copy link
Contributor

Gonna keep this open since #15 isn't merged yet

@elmariofredo
Copy link
Author

ok

@walles
Copy link

walles commented Jul 9, 2015

@elmariofredo Can you test PR #22 and see if that resolves your issue as well?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants