This commit is contained in:
yumoqing 2025-09-04 17:19:53 +08:00
parent 5b0e28f401
commit 267c7fb0e5

View File

@ -36,7 +36,6 @@ MIME_EXT = {
} }
def getFilenameFromBase64(base64String): def getFilenameFromBase64(base64String):
// Extract MIME type from data URL
mimeType = base64String.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/) mimeType = base64String.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/)
match = re.match(r"data:(.*?);base64,(.*)", base64String) match = re.match(r"data:(.*?);base64,(.*)", base64String)
if not match: if not match: