fix: compare md5 when keeping Recalbox text

The attribute pattern took letters only, so md5 never entered the comparison and an element whose digest the truth corrects kept Recalbox's text. A test written before the change caught it. The RetroDECK fixture now names the core that reads its addition, as the placement rule requires.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 01:25:25 +02:00
1 parent c5fd079b78
commit 19a7128ec6
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ SCHEMA_URL = (
)
_ATTRIBUTE = re.compile(r'([A-Za-z]+)\s*=\s*"([^"]*)"')
_ATTRIBUTE = re.compile(r'([A-Za-z][A-Za-z0-9]*)\s*=\s*"([^"]*)"')
_SYSTEM_BLOCK = re.compile(r"<system\b.*?</system>", re.S)
_BIOS_ELEMENT = re.compile(r"[ \t]*<bios\b.*?/>", re.S)