Skip to content

Commit

Permalink
improve matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-stewart committed Mar 28, 2024
1 parent 7abe89f commit a985ea5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/item_fuzzy_matcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

static const int MATCH_BONUS = 1;
static const int INNER_WORD_BOUNDARY_BONUS = 100; // inner(W)ord
static const int NEW_WORD_BONUS = 101; // new-(w)ord
static const int SEPARATED_WORD_BONUS = 102; // separated/(w)ord
static const int START_LINE_BONUS = 103; // (s)tart of line
static const int NEW_WORD_BONUS = 105; // new-(w)ord
static const int SEPARATED_WORD_BONUS = 110; // separated/(w)ord
static const int START_LINE_BONUS = 115; // (s)tart of line

static const int CONSECUTIVE_BONUS = 200;
static const int COUNT_BONUS = 1;
Expand Down

0 comments on commit a985ea5

Please sign in to comment.