1
0
forked from me/IronOS

Update metadata.py

This commit is contained in:
Ben V. Brown
2022-02-07 21:34:01 +11:00
parent 5e777a97d2
commit 8c5c166109

View File

@@ -63,7 +63,7 @@ for file_path in output_files:
if file_path.endswith(".hex") or file_path.endswith(".dfu"):
# Find out what language this file is
name: str = os.path.basename(file_path)
matches = re.findall(r"^([a-zA-Z]+)_(.+)\.(.+)$", name)
matches = re.findall(r"^([a-zA-Z0-9]+)_(.+)\.(.+)$", name)
if matches:
matches = matches[0]
if len(matches) == 3: