From f7cc6fe06c6b2e56d3b2fe52ac3889028900def8 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 4 Sep 2025 17:20:44 +0800 Subject: [PATCH] bugfix --- appPublic/base64_to_file.py | 1 - 1 file changed, 1 deletion(-) diff --git a/appPublic/base64_to_file.py b/appPublic/base64_to_file.py index b15031b..345798a 100644 --- a/appPublic/base64_to_file.py +++ b/appPublic/base64_to_file.py @@ -36,7 +36,6 @@ MIME_EXT = { } def getFilenameFromBase64(base64String): - mimeType = base64String.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/) match = re.match(r"data:(.*?);base64,(.*)", base64String) if not match: raise ValueError("不是合法的 base64 Data URL")