mattyork / fuzzy

Filters a list based on a fuzzy string search
MIT License
831 stars 86 forks source link

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

Closed staydecent closed 8 years ago

staydecent commented 8 years ago

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. 🙂