Merge pull request #16 from wneessen/14-prefix

Skip padding results
This commit is contained in:
Winni Neessen 2022-06-09 16:22:14 +02:00 committed by GitHub
commit bc1c5d0914
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,6 +118,9 @@ func (p *PwnedPassApi) ListHashesPrefix(pf string) ([]Match, *http.Response, err
if err != nil { if err != nil {
continue continue
} }
if hc == 0 {
continue
}
pwMatches = append(pwMatches, Match{ pwMatches = append(pwMatches, Match{
Hash: fh, Hash: fh,
Count: hc, Count: hc,