Skip to content

Commit

Permalink
perf: 优化切换自的密码匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Apr 9, 2024
1 parent 0bbb7d7 commit 5bdd65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/srvconn/conn_ssh_su.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const (
\b: word boundary 即: 匹配某个单词边界
*/

passwordMatchPattern = "(?i)\\bpassword\\b\\s*:|密码"
passwordMatchPattern = "(?i)\\bpassword\\b\\s*|密码|password"

usernameMatchPattern = "(?i)username:?\\s*$|name:?\\s*$|用户名:?\\s*$"
)
Expand Down

0 comments on commit 5bdd65a

Please sign in to comment.