Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if the compareString is an exact match with pattern, totalScore should be maxed #15

Merged
merged 2 commits into from
Sep 24, 2016

Conversation

staydecent
Copy link
Contributor

If I had a list of items like ['good', 'goof', 'goggle', 'gogo', 'go', 'do good'] and and I provide 'go' to search with, the item in the array that is exactly: 'go', should have a higher score than every other match, even tho all options contain the string 'go'.

Well, this is what I think at least. Let me know any thoughts. 🙂

t4ku added a commit to enigmo/react-typeahead that referenced this pull request Apr 25, 2016
t4ku added a commit to enigmo/react-typeahead that referenced this pull request Apr 25, 2016
@mattyork mattyork merged commit cbb9f54 into mattyork:master Sep 24, 2016
@mattyork mattyork modified the milestone: 0.1.2 Sep 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants