fuzzysort
fuzzysort copied to clipboard
Not detecting multiple instances of the search target in the same line
Hi 👋
I'm not sure if this is the intended behaviour, but I noticed that when there are multiple occurrences of the search term in a line, only one of them is detected and added to the indexes array.
You can see this behaviour on the demo page: https://rawgit.com/farzher/fuzzysort/master/test/test.html
Notice how Youtube is only highlighted once in the first search result even though it appears 2 times.
Is this intentional? Cause I think right now, it might be confusing/misleading to the user when he types a search term & it's not being highlighted in some places making him maybe miss it.