Skip to content

Commit

Permalink
perf: update LoginFailedPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Mar 14, 2023
1 parent 1e7d5a2 commit f9583a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion const.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var CodeTOASCII = map[byte]string{
const (
usernameRegs = "(?i)login:?\\s*$|username:?\\s*$|name:?\\s*$|用户名:?\\s*$|账\\s*号:?\\s*$|user:?\\s*$"
passwordRegs = "(?i)Password:?\\s*$|ssword:?\\s*$|passwd:?\\s*$|密\\s*码:?\\s*$"
loginFailedRegs = "(?i)incorrect|failed|失败|错误"
loginFailedRegs = "(?i)incorrect|failed|username\\s*or\\s*password\\s*error|失败|错误"
loginSuccessRegs = "(?i)Last\\s*login|login\\s*time|success|成功|#|>|\\$"
)

Expand Down

0 comments on commit f9583a7

Please sign in to comment.