Improve Phoenix Core extraneous byte stripping

This commit is contained in:
RichardG867
2022-03-03 16:14:15 -03:00
parent eddddcc02d
commit 2575906d32

View File

@@ -1871,10 +1871,10 @@ class PhoenixAnalyzer(Analyzer):
if ' Setup' in branch:
return False
# Strip "." and ".U" (IBM/Lenovo).
if branch[-1:] == 'U':
branch = branch[:-1]
if branch[-1:] == '.':
# Strip ".", ".U" (IBM/Lenovo) and ".S" (MSI K9ND Speedster2).
if branch[-2] == '.':
branch = branch[:-2]
elif branch[-1] == '.':
branch = branch[:-1]
# Trim branch before "for" (IBM/Lenovo).