Skip to content

Commit be4916b

Browse files
authored
Merge pull request #164 from maxmind/greg/eng-1164
Run latest black version on code
2 parents b109902 + 52e3e68 commit be4916b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

minfraud/validation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def _hostname(hostname: str) -> str:
274274

275275

276276
def _credit_card_token(s: str) -> str:
277-
if re.match("^[\x21-\x7E]{1,255}$", s) and not re.match("^[0-9]{1,19}$", s):
277+
if re.match("^[\x21-\x7e]{1,255}$", s) and not re.match("^[0-9]{1,19}$", s):
278278
return s
279279
raise ValueError
280280

tests/test_request.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_maybe_hash_email(self) -> None:
153153
},
154154
{
155155
"name": "email local part nfc normalization form 2",
156-
"input": {"email": {"address": "b\u00FCcher@example.com"}},
156+
"input": {"email": {"address": "b\u00fccher@example.com"}},
157157
"expected": {
158158
"email": {
159159
"address": "53550c712b146287a2d0dd30e5ed6f4b",
@@ -252,7 +252,7 @@ def test_clean_email() -> None:
252252
{"input": "[email protected].", "output": "[email protected]"},
253253
{"input": "[email protected]...", "output": "[email protected]"},
254254
{"input": "example@bu\u0308cher.com", "output": "[email protected]"},
255-
{"input": "example@b\u00FCcher.com", "output": "[email protected]"},
255+
{"input": "example@b\u00fccher.com", "output": "[email protected]"},
256256
]
257257

258258
for test in tests:

0 commit comments

Comments
 (0)