Skip to content

Commit 6bbfea2

Browse files
author
rajendrant
committed
Fix test for windows
1 parent 7ff51bf commit 6bbfea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scorer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Score scoreExactMatch(const Candidate &subject, const Candidate &subject_lw, con
408408
int end = isWordEnd(pos + n - 1, subject, subject_lw, m);
409409

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

0 commit comments

Comments
 (0)