Skip to content
Snippets Groups Projects
Commit 8d7762f6 authored by FC (Fay) Stegerman's avatar FC (Fay) Stegerman :gay_pride_flag: Committed by Chris Lamb
Browse files

Improve DexFile FILE_TYPE_RE and add FILE_TYPE_HEADER_PREFIX.

parent c988c3ad
No related branches found
No related tags found
No related merge requests found
Pipeline #498320 canceled
......@@ -60,7 +60,8 @@ class DexContainer(Archive):
class DexFile(File):
DESCRIPTION = "Dalvik .dex files"
FILE_TYPE_RE = re.compile(r"^Dalvik dex file .*\b")
FILE_TYPE_HEADER_PREFIX = b"dex\n"
FILE_TYPE_RE = re.compile(r"^Dalvik dex file\b")
FILE_EXTENSION_SUFFIX = {".dex"}
CONTAINER_CLASSES = [DexContainer]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment