Skip to content

Commit

Permalink
fixed special character regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Kierst01 committed Jan 19, 2024
1 parent ef85c53 commit 0015d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/passwordler/password_strength.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def password_strength(password):
"""
count_uppercase = len(re.findall("[A-Z]", password))
count_numbers = len(re.findall('[0-9]', password))
count_special_chars = len(re.findall('[!-\/:-@[-`{-~]', password))
count_special_chars = len(re.findall('[!-/:-@\\[-`{-~]', password))
length = len(password)
common_passwords = ['123456', 'password', '12345', '12345678', 'qwerty', '1234567890', '1234',
'baseball', 'dragon', 'football', '1234567', 'monkey', 'letmein', 'abc123',
Expand Down

0 comments on commit 0015d5d

Please sign in to comment.