From 0015d5defee0257a9d42ce0081e1700179a58d2a Mon Sep 17 00:00:00 2001 From: Kiersten Gilberg Date: Thu, 18 Jan 2024 17:30:02 -0800 Subject: [PATCH] fixed special character regex --- src/passwordler/password_strength.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/passwordler/password_strength.py b/src/passwordler/password_strength.py index a8dea63..4a2c2ce 100644 --- a/src/passwordler/password_strength.py +++ b/src/passwordler/password_strength.py @@ -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',