summaryrefslogtreecommitdiff
path: root/src/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/match.c')
-rw-r--r--src/match.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/match.c b/src/match.c
index 6b3b0ad..855b067 100644
--- a/src/match.c
+++ b/src/match.c
@@ -66,8 +66,7 @@ static void precompute_bonus(const char *haystack, score_t *match_bonus) {
if (isalnum(ch)) {
if (!last_ch || last_ch == '/') {
score = SCORE_MATCH_SLASH;
- } else if (last_ch == '-' || last_ch == '_' || last_ch == ' ' ||
- (last_ch >= '0' && last_ch <= '9')) {
+ } else if (last_ch == '-' || last_ch == '_' || last_ch == ' ') {
score = SCORE_MATCH_WORD;
} else if (last_ch >= 'a' && last_ch <= 'z' && ch >= 'A' && ch <= 'Z') {
/* CamelCase */