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

Wrongly ordered candidates with exact file name match #18

Open

Description

@devopsmariocom
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

Activity

  1. walles commented on Jul 6, 2015

    @walles

    PR #15 may or may not resolve this.

  2. devopsmariocom commented on Jul 6, 2015

    @devopsmariocom
    Author

    confirmed #15 is fixing my issue. Thanks

  3. mnquintana commented on Jul 6, 2015

    @mnquintana
    Contributor

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

  4. devopsmariocom commented on Jul 8, 2015

    @devopsmariocom
    Author

    ok

  5. walles commented on Jul 9, 2015

    @walles

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions