Skip to content

Commit d30c841

Browse files
committed
Clean up
1 parent 5093c86 commit d30c841

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

GitHubActionsTestLogger/Utils/StackFrame.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,33 @@ internal partial class StackFrame
2424
private static readonly Regex Pattern =
2525
new(
2626
$$"""
27-
^
28-
{{Space}}*
29-
\w+ {{Space}}+
30-
(?<frame>
31-
(?<type> {{NotSpace}}+ ) \.
32-
(?<method> {{NotSpace}}+? ) {{Space}}*
33-
(?<params> \( ( {{Space}}* \)
34-
| (?<pt> .+?) {{Space}}+ (?<pn> .+?)
35-
(, {{Space}}* (?<pt> .+?) {{Space}}+ (?<pn> .+?) )* \) ) )
36-
( {{Space}}+
37-
( # Microsoft .NET stack traces
38-
\w+ {{Space}}+
39-
(?<file> ( [a-z] \: # Windows rooted path starting with a drive letter
40-
| / ) # Unix rooted path starting with a forward-slash
41-
.+? )
42-
\: \w+ {{Space}}+
43-
(?<line> [0-9]+ ) \p{P}?
44-
| # Mono stack traces
45-
\[0x[0-9a-f]+\] {{Space}}+ \w+ {{Space}}+
46-
<(?<file> [^>]+ )>
47-
:(?<line> [0-9]+ )
48-
)
49-
)?
50-
)
51-
\s*
52-
$
53-
""",
27+
^
28+
{{Space}}*
29+
\w+ {{Space}}+
30+
(?<frame>
31+
(?<type> {{NotSpace}}+ ) \.
32+
(?<method> {{NotSpace}}+? ) {{Space}}*
33+
(?<params> \( ( {{Space}}* \)
34+
| (?<pt> .+?) {{Space}}+ (?<pn> .+?)
35+
(, {{Space}}* (?<pt> .+?) {{Space}}+ (?<pn> .+?) )* \) ) )
36+
( {{Space}}+
37+
( # Microsoft .NET stack traces
38+
\w+ {{Space}}+
39+
(?<file> ( [a-z] \: # Windows rooted path starting with a drive letter
40+
| / ) # Unix rooted path starting with a forward-slash
41+
.+? )
42+
\: \w+ {{Space}}+
43+
(?<line> [0-9]+ ) \p{P}?
44+
| # Mono stack traces
45+
\[0x[0-9a-f]+\] {{Space}}+ \w+ {{Space}}+
46+
<(?<file> [^>]+ )>
47+
:(?<line> [0-9]+ )
48+
)
49+
)?
50+
)
51+
\s*
52+
$
53+
""",
5454
RegexOptions.IgnoreCase
5555
| RegexOptions.Multiline
5656
| RegexOptions.ExplicitCapture

0 commit comments

Comments
 (0)