From b1d6c792258bed85f0632564e42740a4e58863dd Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Mon, 11 Apr 2022 17:52:27 -0300 Subject: [PATCH] Fix Intertan AMI pre-Color string with dash-separated date --- biostools/analyzers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/biostools/analyzers.py b/biostools/analyzers.py index 8a4dc12..c1b030e 100644 --- a/biostools/analyzers.py +++ b/biostools/analyzers.py @@ -342,8 +342,8 @@ class AMIAnalyzer(Analyzer): # "Ref. " (Everex EISA 386-BIOS) - let the code handle termination self._precolor_string_pattern = re.compile(b'''\\xFE([\\x00-\\x95\\x97-\\xFD\\xFF]{4}\\x96(?:[\\x00-\\x95\\x97-\\xFF]{4}\\x96)?[\\x00-\\x95\\x97-\\xFF]{6}|\\x6D\\xD4\\xCC\\x8E\\xFE[\\x00-\\xFF]{1,64})''') self._precolor_signon_pattern = re.compile(b'''BIOS \\(C\\).*(?:AMI|American Megatrends Inc), for ([\\x0D\\x0A\\x20-\\x7E]+)''') - # Decoded: "\(C\)AMI, \(([^\)]{11})\)" - self._8088_string_pattern = re.compile(b'''\\xEC\\x5F\\x6C\\x60\\x5A\\x5C\\xEA\\xF0\\xEC([\\x00-\\x6B\\x6D-\\xFF]{11})\\x6C''') + # Decoded: "\(C\)AMI, \(([^\)]{11,64})\)" (the 64 is arbitrary) + self._8088_string_pattern = re.compile(b'''\\xEC\\x5F\\x6C\\x60\\x5A\\x5C\\xEA\\xF0\\xEC([\\x00-\\x6B\\x6D-\\xFF]{11,64})\\x6C''') self.register_check_list([ (self._string_pcchips, RegexChecker),