Skip to content

Commit

Permalink
Fix test for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rajendrant committed Dec 23, 2018
1 parent 7ff51bf commit 6bbfea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scorer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ Score scoreExactMatch(const Candidate &subject, const Candidate &subject_lw, con
int end = isWordEnd(pos + n - 1, subject, subject_lw, m);

Score baseNameStart = 1;
if (start && pos>0 && subject[pos-1]=='/') {
if (start && pos>0 && (subject[pos-1]=='/' || subject[pos-1]=='\\')) {
baseNameStart = 1.1;
}

Expand Down

0 comments on commit 6bbfea2

Please sign in to comment.