File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ static constexpr int const MAX_MATCHES = 256;
17
17
static constexpr int const SEQUENTIAL_BONUS = 15 ; // bonus for adjacent matches (needle: 'ca', haystack: 'cat')
18
18
static constexpr int const SEPARATOR_BONUS = 30 ; // bonus if match occurs after a separator ('_' or ' ')
19
19
static constexpr int const CAMEL_BONUS = 30 ; // bonus if match is uppercase and prev is lower (needle: 'myF' haystack: '/path/to/myFile.txt')
20
- static constexpr int const FIRST_LETTER_BONUS = 20 ; // bonus if the first letter is matched (needle: 'c' haystack: 'cat')
20
+ static constexpr int const FIRST_LETTER_BONUS = 15 ; // bonus if the first letter is matched (needle: 'c' haystack: 'cat')
21
21
static constexpr int const LEADING_LETTER_PENALTY = -5 ; // penalty applied for every letter in str before the first match
22
22
static constexpr int const MAX_LEADING_LETTER_PENALTY = -15 ; // maximum penalty for leading letters
23
23
static constexpr int const UNMATCHED_LETTER_PENALTY = -1 ; // penalty for every letter that doesn't matter
You can’t perform that action at this time.
0 commit comments