Skip to content

Commit

Permalink
fix matcher: ignorecase-ed25519
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattias- committed Dec 5, 2023
1 parent a867098 commit 2f89d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/matcher/ignorecase_ed25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ func (m *ignorecaseEd25519Matcher) SetMatchString(matchString string) {

func (m *ignorecaseEd25519Matcher) Match(s keygen.SSHKey) bool {
pubK := s.SSHPubkey()
return strings.Contains(strings.ToLower(string(pubK[:37])), m.matchString)
return strings.Contains(strings.ToLower(string(pubK[37:])), m.matchString)
}

0 comments on commit 2f89d24

Please sign in to comment.