From 69ecfce9ff02d17439e49afb771bf8e70f727e4e Mon Sep 17 00:00:00 2001 From: derped Date: Mon, 25 Nov 2024 11:01:45 +0100 Subject: [PATCH] fix md5 hash length in syntax --- fck/cktype/md5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fck/cktype/md5.py b/fck/cktype/md5.py index a15caf4..4a5369a 100644 --- a/fck/cktype/md5.py +++ b/fck/cktype/md5.py @@ -6,7 +6,7 @@ from hashlib import md5 class MD5(object): NAME: str = "MD5" EXT: List[str] = [".md5"] - SYNTAX: List[Pattern] = [compile(r"^;*$"), compile(r"^.* [0-9a-fA-F]{8}$")] + SYNTAX: List[Pattern] = [compile(r"^;*$"), compile(r"^.* [0-9a-fA-F]{32}$")] REGEX: Pattern = compile(r"[0-9a-fA-F]{32}") NULL: str = "D41D8CD98F00B204E9800998ECF8427E"