Commit 20d513a
fix: strip ANSI codes and use last capture group in error classification
Strip ANSI escape sequences before pattern matching so cause/fix
messages don't contain terminal color codes from ccutil output.
Use last capture group instead of first so multi-group patterns
like invalid-xref extract the actual ID, not the alternation match.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7728cde commit 20d513a
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| 92 | + | |
89 | 93 | | |
90 | | - | |
| 94 | + | |
91 | 95 | | |
92 | | - | |
| 96 | + | |
93 | 97 | | |
94 | | - | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
0 commit comments