You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case is to extract color names from a given string. And I have provided the list of color names as my collection.
But when I try to get the closest match for a color name with a typo, the fuse does not match with any of them, even when it's a single-character typo.
For example:
Collection = ["Red", "Green", "Black"]
Search word = "grean"
Result from fuse = []
I wanted to know why this is not working. And did anyone face this kind of issue earlier?
Is there an existing issue for this?
Description of the bug
My use case is to extract color names from a given string. And I have provided the list of color names as my collection.
But when I try to get the closest match for a color name with a typo, the fuse does not match with any of them, even when it's a single-character typo.
For example:
Collection = ["Red", "Green", "Black"]
Search word = "grean"
Result from fuse = []
I wanted to know why this is not working. And did anyone face this kind of issue earlier?
The Fuse.js version where this bug is happening.
6.6.2
Is this a regression?
Which version did this behavior use to work in?
Steps To Reproduce
Here is the fiddle link to check: https://jsfiddle.net/ykecbuaz/12/
Open the fiddle console and try "grean" in the search bar.
Fuse options I used:
Expected behavior
Typo words should match the nearest similar word.
For example: "grean" should match "green".
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: