We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8459ce5 commit 2939b6bCopy full SHA for 2939b6b
zxcvbn/scoring.py
@@ -173,6 +173,10 @@ def make_bruteforce_match(i, j):
173
# helper: step backwards through optimal.m starting at the end,
174
# constructing the final optimal match sequence.
175
def unwind(n):
176
+ if n == 0:
177
+ # return empty list for zero-length password
178
+ return []
179
+
180
optimal_match_sequence = []
181
k = n - 1
182
# find the final best sequence length and score
0 commit comments