tools: adjust re.match to recent gpt.h additions

with addition of SD_ID128_MAKE_UUID_STR entries to src/shared/gpt.h the tool
failed halfway due to falsly matching the new entries
This commit is contained in:
Matthias Lisin 2022-02-21 02:32:25 +01:00
parent e99ca14741
commit 5fa87e9651

View file

@ -142,7 +142,7 @@ DESCRIPTIONS = {
def extract(file):
for line in file:
# print(line)
m = re.match(r'^#define\s+GPT_(.*SD_ID128_MAKE.*)', line)
m = re.match(r'^#define\s+GPT_(.*SD_ID128_MAKE\(.*\))', line)
if not m:
continue