Open
Description
It seems like the repetition matcher fails to identify repetitions when composed of special UTF-8 characters like ü
, for example.
Here is an example code snippet demonstrating the issue.
package main
import (
"fmt"
"github.com/trustelem/zxcvbn"
)
func main() {
res := zxcvbn.PasswordStrength("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", nil)
fmt.Println(res.Guesses)
res = zxcvbn.PasswordStrength("ööööööööööööööööööööööööööööööööööööö", nil)
fmt.Println(res.Guesses)
res = zxcvbn.PasswordStrength("øøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøøø", nil)
fmt.Println(res.Guesses)
}
Metadata
Metadata
Assignees
Labels
No labels