Skip to content

Commit 5a222a0

Browse files
authored
Adjusted regex to properly handle Windows paths (#8518)
1 parent 204d11d commit 5a222a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HotChocolate/Core/src/Types/SchemaException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static string CreateErrorMessage(IReadOnlyList<ISchemaError> errors)
6363

6464
private static partial class StackTraceHelper
6565
{
66-
[GeneratedRegex(@" in ([^:]+):line (\d+)", RegexOptions.Compiled)]
66+
[GeneratedRegex(@" in (.+):line (\d+)", RegexOptions.Compiled)]
6767
private static partial Regex StackTracePathRegex();
6868

6969
public static string? Normalize(string stackTrace)

0 commit comments

Comments
 (0)