From 1e38537bfec7bfc16af08ab4dd40286dab6c8057 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 12 Jan 2023 19:58:34 -0300 Subject: [PATCH] ArchiveExtractor: Add proper LHA signature (where did that other one come from?) except for lh5 --- biostools/extractors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biostools/extractors.py b/biostools/extractors.py index 54e70fd..742f484 100644 --- a/biostools/extractors.py +++ b/biostools/extractors.py @@ -144,7 +144,7 @@ class ArchiveExtractor(Extractor): b'''\\x1F\\x8B|''' # gzip b'''BZh|''' # bzip2 b'''\\xFD7zXZ\\x00|''' # xz - b'''LHA\\x20|''' # lha + b'''[\\x00-\\xFF]{2}-l(?:h[0467]|z4)-|''' # lha (methods supported by 7-Zip - HACK: except lh5 due to Award) b'''ZOO''' # zoo )