Open
Description
When a combining diacritic character is repeated in consecutive runes, the PasswordStrength
function gives a score of 0. For example the string below where the \u0300 rune appears twice after the initial A:
s := "A\u0300\u0300HLUMoB8g3kqgpjc3"
result := zxcvbn.PasswordStrength(s, nil)
// result.Score == 0
However, if the repeated combining characters are at the end of the string the score is still high:
s := "HLUMoB8g3kqgpjc3A\u0300\u0300"
result := zxcvbn.PasswordStrength(s, nil)
// result.Score == 4
I've not been able to look into this very deeply but disabling the repeatMatch
in Omnimatch
results in score of 4.
Metadata
Metadata
Assignees
Labels
No labels