+ Fixed device name cleaner

This commit is contained in:
BuildTools 2024-11-16 17:57:44 +01:00
parent 6c4104e8d2
commit 983c4185fd
1 changed files with 1 additions and 1 deletions

View File

@ -102,4 +102,4 @@ class Device:
def get_name(self): def get_name(self):
name = f"{self.group_certificate.get_name()}_sl{self.group_certificate.get_security_level()}" name = f"{self.group_certificate.get_name()}_sl{self.group_certificate.get_security_level()}"
return ''.join(char for char in name if char.isascii()).strip().lower().replace(" ", "_") return ''.join(char for char in name if (char.isalpha() or char in ['_', '-', ' '])).strip().lower().replace(" ", "_")