style: format native commands bits

This commit is contained in:
Peter Steinberger
2026-01-12 22:45:47 +00:00
parent 2785009c6f
commit 2e08a868a7
3 changed files with 41 additions and 35 deletions

View File

@@ -74,10 +74,8 @@ function scoreFuzzyMatch(params: {
if (!fragment) return 0;
let score = 0;
if (value === fragment) score = Math.max(score, weights.exact);
if (value.startsWith(fragment))
score = Math.max(score, weights.starts);
if (value.includes(fragment))
score = Math.max(score, weights.includes);
if (value.startsWith(fragment)) score = Math.max(score, weights.starts);
if (value.includes(fragment)) score = Math.max(score, weights.includes);
return score;
};