Skip to content

Commit 820a450

Browse files
authored
Merge pull request #236 from SlowLogicBoy/master
ExcludeByFile add traversal support when full path specified.
2 parents b819588 + c6b1ad4 commit 820a450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coverlet.core/Helpers/InstrumentationHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public static string[] GetExcludedFiles(string[] excludes)
243243
{
244244
matcherDict.Add(root, new Matcher());
245245
}
246-
matcherDict[root].AddInclude(excludeRule.Substring(root.Length));
246+
matcherDict[root].AddInclude(Path.GetFullPath(excludeRule).Substring(root.Length));
247247
}
248248
else
249249
{

0 commit comments

Comments
 (0)