Commit a3516c9
fix(analyzer): correct off-by-one in line count for POSIX files
Files ending with newline (POSIX standard) produced split('\n') with
a trailing empty string, overcounting by 1. Now handles trailing
newline correctly.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6ae1de0 commit a3516c9
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
0 commit comments