Some fixes based on review comments

This commit is contained in:
Sergi Delgado Segura
2019-12-16 11:58:14 +01:00
parent dac9f56901
commit a7eb22626e
2 changed files with 3 additions and 3 deletions

View File

@@ -2,4 +2,4 @@ import re
def check_sha256_hex_format(value):
return isinstance(value, str) and re.search(r"^[0-9A-Fa-f]{64}$", value) is not None
return isinstance(value, str) and re.match(r"^[0-9A-Fa-f]{64}$", value) is not None