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 566fff1 commit af1d4b2Copy full SHA for af1d4b2
zxcvbn/matching.py
@@ -2,6 +2,7 @@
2
from . import adjacency_graphs
3
import re
4
import functools
5
+import copy
6
7
from zxcvbn.scoring import most_guessable_match_sequence
8
@@ -98,7 +99,8 @@ def wrapper(*args, **kwargs):
98
99
# omnimatch -- perform all matches
100
@ensure_ranked_dictionaries
101
def omnimatch(password, _ranked_dictionaries=None, user_inputs=[]):
- if len(user_inputs):
102
+ if _ranked_dictionaries is not None and user_inputs:
103
+ _ranked_dictionaries = copy.copy(_ranked_dictionaries)
104
_ranked_dictionaries['user_inputs'] = build_ranked_dict(user_inputs)
105
106
matches = []
0 commit comments