Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/zxcvbn/scorer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def initialize(data, omnimatch, reference_year)
def most_guessable_match_sequence(password, matches, exclude_additive: false)
n = password.length

return build_score(password, [], 1) if n.zero?
return build_score(password, [], 1.0) if n.zero?

# index matches by their last character
matches_by_j = Array.new(n) { [] }
Expand Down