diff --git a/zxcvbn.go b/zxcvbn.go index 510fe96..22a1345 100644 --- a/zxcvbn.go +++ b/zxcvbn.go @@ -1,15 +1,17 @@ package zxcvbn import ( + "time" + + "github.com/TheMacies/zxcvbn-go/match" "github.com/nbutton23/zxcvbn-go/matching" "github.com/nbutton23/zxcvbn-go/scoring" "github.com/nbutton23/zxcvbn-go/utils/math" - "time" ) -func PasswordStrength(password string, userInputs []string) scoring.MinEntropyMatch { +func PasswordStrength(password string, userInputs []string, filters ...func(match.Matcher) bool) scoring.MinEntropyMatch { start := time.Now() - matches := matching.Omnimatch(password, userInputs) + matches := matching.Omnimatch(password, userInputs, filters...) result := scoring.MinimumEntropyMatchSequence(password, matches) end := time.Now()