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
Same underlying bug as #792, just observed from the other side. Shipped a fix in v7.4.0-beta.6 (npm install fuse.js@beta) that restricts highlights to the actual matched window. minMatchCharLength: 2 now reliably filters single-char residuals, which it couldn't do reliably before because multi-character stray runs would slip through anyway. Bonus: ~15% perf win on includeMatches queries.
Activity
rahuls24 commentedon Apr 4, 2025
To highlight only substrings that are at least X characters long, you can use Fuse.js with the
minMatchCharLengthoption.🚀 Approach 1: Using
minMatchCharLength(Recommended)The cleanest way is to set the
minMatchCharLengthoption in your Fuse.js configuration:minMatchCharLength: 2filters out matches shorter than 2 characters.⚡ Approach 2: Manual Filtering (Workaround)
If you can’t change the configuration, manually filter out single-character matches after the search:
📚 References:
github-actions commentedon Aug 3, 2025
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
krisk commentedon May 14, 2026
Same underlying bug as #792, just observed from the other side. Shipped a fix in
v7.4.0-beta.6(npm install fuse.js@beta) that restricts highlights to the actual matched window.minMatchCharLength: 2now reliably filters single-char residuals, which it couldn't do reliably before because multi-character stray runs would slip through anyway. Bonus: ~15% perf win onincludeMatchesqueries.