Closed lucasefe closed 4 years ago
Not a bug 😄
Please check out the scoring theory.
Since you didn't specify the fuzzy-matching options, Fuse.js will use the following values:
location
defaults to 0
distance
defaults to 100
threshold
defaults to 0.6
With the above options, for something to be considered a match, it would have to be within (threshold) 0.6
x (distance) 100
= 60
characters away from the expected location 0
.
Since 70
> 60
, it obviously wouldn't match.
Strongly encourage everyone to read the scoring theory for additional insights.
Thank you for the insight.
Will read. Much appreciated.
Describe the bug
If the string we want to match appears after position 70, in another string which is longer than 70 chars, it won't match it.
Version
Not sure before this, but happens on 6.0.0 up to 6.2.1.
🔬Minimal Reproduction