Commit 1e6e976
Fix regex to capture Methods percentage correctly
The regex was incorrectly trying to match the Methods percentage
without capturing it. Since the match groups were off by one,
line_percent was getting the wrong value.
Changed from:
r'^([\w\\]+)\s+Methods:\s+[\d.]+%.*Lines:\s+([\d.]+)%...'
To:
r'^([\w\\]+)\s+Methods:\s+([\d.]+)%.*Lines:\s+([\d.]+)%...'
Now the groups are:
- Group 1: Class name
- Group 2: Methods percentage (unused but captured)
- Group 3: Lines percentage
- Groups 4-5: Covered/total lines
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 9973f48 commit 1e6e976
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
0 commit comments