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")