Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minMatchCharLength not working as expected #764

Open
1 of 2 tasks
DesmondHsu opened this issue Apr 8, 2024 · 0 comments
Open
1 of 2 tasks

minMatchCharLength not working as expected #764

DesmondHsu opened this issue Apr 8, 2024 · 0 comments
Labels

Comments

@DesmondHsu
Copy link

DesmondHsu commented Apr 8, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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?

  • This is a regression bug

Which version did this behavior use to work in?

None

Steps To Reproduce

using Live demo

list.json

[
  "Taylor Swift", "or something rather"
]

Input:

taylor swft

With config being:

const fuseOptions = {
	minMatchCharLength: 12,
};

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

Screenshot 2024-04-08 at 10 36 10 am

Additional context

No response

@DesmondHsu DesmondHsu added the bug label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant