Commit 3e1c2bb
committed
fix: Adjust regex for diff stats output
The regex for parsing the output of `git diff --cached --stat` was too strict. It did not account for the pluralization of "insertion" and "deletion". This change makes the regex more flexible to handle both singular and plural forms, ensuring accurate parsing of the diff statistics.
---
{"auto-commit-msg":{"language":"rust","version":"0.4.0-dev","model":"gemini-2.5-flash-lite","response_time":1.62,"execution_time":1.65}}1 parent 1b54799 commit 3e1c2bb
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments