Commit fe38ad3
fix: use non-greedy tag regex for .NET 10 compatibility
The TaggedLogLineMatcher regex used `.+` (greedy match) in the optional
tag group, which relied on backtracking to correctly parse tags. .NET 10
changed regex engine backtracking behaviour, causing the optional group
to be skipped entirely instead of backtracking to find the tag value.
Replace `Tag=.+` with `Tag=[^,]+` to match only non-comma characters,
avoiding the need for backtracking across comma boundaries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3a40a77 commit fe38ad3
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments