Closed DesmondHsu closed 2 months ago
When looking for a x-character item, result is not actually limit result at minMatchCharLength.
Version replicable: 7.0.0
Other (please specify in description)
None
using Live demo
list.json
[ "Taylor Swift", "or something rather" ]
Input:
taylor swft
With config being:
const fuseOptions = { minMatchCharLength: 12, };
It is expected "Taylor Swift" would be the result for it is 12 characters long. For such input "taylor swft" which is 11 characters long, the acceptable value for minMatchCharLength appears to be 9. It should rather work for 9, 10, 11, and 12.
minMatchCharLength
No response
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 30 days
Is there an existing issue for this?
Description of the bug
When looking for a x-character item, result is not actually limit result at minMatchCharLength.
Version replicable: 7.0.0
The Fuse.js version where this bug is happening.
Other (please specify in description)
Is this a regression?
Which version did this behavior use to work in?
None
Steps To Reproduce
using Live demo
list.json
Input:
With config being:
Expected behavior
It is expected "Taylor Swift" would be the result for it is 12 characters long. For such input "taylor swft" which is 11 characters long, the acceptable value for
minMatchCharLength
appears to be 9. It should rather work for 9, 10, 11, and 12.Screenshots
Additional context
No response