Files
python-teos/common/tools.py
2019-12-16 11:58:14 +01:00

6 lines
136 B
Python

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