Skip to content

Commit 7e33bd7

Browse files
committed
fix invalid escape sequence
1 parent 3955300 commit 7e33bd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptacular/bcrypt/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class BCRYPTPasswordManager(object):
3737
PREFIX = "$2a$"
3838
_rounds = 10
3939

40-
_bcrypt_syntax = re.compile("\$2a\$[0-9]{2}\$[./A-Za-z0-9]{53}")
40+
_bcrypt_syntax = re.compile(r"\$2a\$[0-9]{2}\$[./A-Za-z0-9]{53}")
4141

4242
def encode(self, text, rounds=None):
4343
"""Hash a password using bcrypt.

0 commit comments

Comments
 (0)