Skip to content

Commit 16f5557

Browse files
author
Gurpreet Singh
committed
improve path scrubber
1 parent e8d79ce commit 16f5557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestStack.BDDfy.Tests/Reporters/ReportApprover.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static string ScrubLineNumbers(string source)
3535

3636
static string ScrubPaths(string source)
3737
{
38-
var result = Regex.Replace(source, @"(.*) .*[\\/](.*)", "$1 ...\\$2", RegexOptions.Multiline);
38+
var result = Regex.Replace(source, @"(at .* in) .*[\\/](.*.cs)", "$1 ...\\$2", RegexOptions.Multiline);
3939
return result;
4040
}
4141
}

0 commit comments

Comments
 (0)