Skip to content

add weight to the match location #43

@sakulstra

Description

@sakulstra

What I want to archive is the mentioned in the tests as todo.

      // TODO: Dont know how I feel about this. Sublime weights characters that
      // appear toward the beginning of the string a bit higher

https://github.com/mattyork/fuzzy/blob/master/test/fuzzy.test.js#L51

The practical usecase is that i have a list with languages and for eng the first result is not english, but bengalish.

Not sure if an exact duplicate, but at least related to: #3 and I guess already fixed in #12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions