mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
Merge branch 'master' into 46-docstrings
This commit is contained in:
@@ -11,4 +11,4 @@ def check_sha256_hex_format(value):
|
||||
Returns:
|
||||
:mod:`bool`: Wether or not the value matches the format.
|
||||
"""
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user