Commit 9a94923
fix: correctly extract username from "invalid user" SSH log lines (#31)
The USER_REGEX matched "for" then captured "invalid" as the username.
Add a more specific INVALID_USER_REGEX that matches the full "for invalid
user <name>" pattern and try it first.
Fixes #26
Co-authored-by: xiaow-ai <xiaow-ai@ugig.net>
Co-authored-by: Claude <noreply@anthropic.com>1 parent e96dc75 commit 9a94923
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
0 commit comments