Skip to content

Commit

Permalink
fix: give more weight to sequential matches (#19121) (#19122)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4ba72d0)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush committed Dec 5, 2022
1 parent 3dd2775 commit 16f642f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/ui/toolbar/fuzzy_match.js
Expand Up @@ -14,7 +14,7 @@
// J�rgen Tjern� - async helper
// Anurag Awasthi - updated to 0.2.0

const SEQUENTIAL_BONUS = 15; // bonus for adjacent matches
const SEQUENTIAL_BONUS = 25; // bonus for adjacent matches
const SEPARATOR_BONUS = 30; // bonus if match occurs after a separator
const CAMEL_BONUS = 30; // bonus if match is uppercase and prev is lower
const FIRST_LETTER_BONUS = 15; // bonus if the first letter is matched
Expand Down

0 comments on commit 16f642f

Please sign in to comment.