Skip to content

Commit c7edb8d

Browse files
committed
fix and test some more
1 parent 189509a commit c7edb8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Support/Path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ startsWith(
475475
++itPrefix;
476476
}
477477
// Have we consumed the whole prefix?
478-
return itPrefix == prefix.end();
478+
return itPrefix == prefix.end() && (itPath == pathName.end() || *itPath == '/' || *itPath == '\\');
479479
}
480480

481481
} // files

0 commit comments

Comments
 (0)