Skip to content

Commit 594db76

Browse files
committed
Set the ASCII flag on the regex
1 parent 4dacdb1 commit 594db76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

minfraud/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _credit_card_token(s: str) -> str:
241241

242242

243243
_rfc3339_datetime = Match(
244-
r"\A\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}:\d{2}(\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})\Z"
244+
r"(?a)\A\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}:\d{2}(\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})\Z"
245245
)
246246

247247

0 commit comments

Comments
 (0)