fixed IS_STRONG **** issue, issue 1098

This commit is contained in:
mdipierro
2012-12-05 15:24:15 -06:00
parent 9c41f48786
commit c86a4467d3
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.0 (2012-12-05 14:17:12) rc1
Version 2.3.0 (2012-12-05 15:23:32) rc1
+2
View File
@@ -2858,6 +2858,8 @@ class IS_STRONG(object):
def __call__(self, value):
failures = []
if value and len(value) == value.count('*') > 4:
return (value, None)
if self.entropy is not None:
entropy = calc_entropy(value)
if entropy < self.entropy: