lib/zxcvbn/matching.rb in zxcvbn-0.1.10 vs lib/zxcvbn/matching.rb in zxcvbn-0.1.11

- old
+ new

@@ -9,10 +9,10 @@ result[word] = idx + 1 end result end - RANKED_DICTIONARIES = FREQUENCY_LISTS.transform_values do |lst| + RANKED_DICTIONARIES = Zxcvbn.frequency_lists.transform_values do |lst| build_ranked_dict(lst) end RANKED_DICTIONARIES_MAX_WORD_SIZE = RANKED_DICTIONARIES.transform_values do |word_scores| word_scores.keys.max_by(&:size).size