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

fix: allow matches on words far in the label #350

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Conversation

dubzzz
Copy link
Contributor

@dubzzz dubzzz commented Dec 18, 2023

The current settings passed to fuse.js, make it unable to match something appearing very far in the label. In other words, if the label is made of 10 words and the query of the user aim to select on the 10th word, you'll never get the item.

With this PR I suggest to relax this constraint by asking fuse.js to ignore the location when performing its searches.

It should fixes the issue #337.

The current settings passed to fuse.js, make it unable to match something appearing very far in the label. In other words, if the label is made of 10 words and the query of the user aim to select on the 10th word, you'll never get the item.

With this PR I suggest to relax this constraint by asking fuse.js to ignore the location when performing its searches.

It should fixes the issue timc1#337.
Copy link

vercel bot commented Dec 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kbar ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2023 9:20am

@dubzzz
Copy link
Contributor Author

dubzzz commented Jan 3, 2024

@timc1 Do you think there is a change to have it merged?

@timc1 timc1 merged commit 4e1354d into timc1:main Jan 3, 2024
2 checks passed
@dubzzz
Copy link
Contributor Author

dubzzz commented Jan 3, 2024

Thank you so so much ❤️

@timc1
Copy link
Owner

timc1 commented Jan 3, 2024

@dubzzz Thanks for the contribution! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants