1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-13 05:06:30 +04:00

add some checks for custom flipper name

and update audio ir asset by Amec0e
This commit is contained in:
MX
2022-08-16 09:43:21 +03:00
parent 5ab70b264d
commit a928cb6ed7
6 changed files with 35 additions and 10 deletions

View File

@@ -42,7 +42,7 @@ class GitVersion:
or ""
)
if (custom_fz_name != "") and (len(custom_fz_name) <= 8):
if (custom_fz_name != "") and (len(custom_fz_name) <= 8) and (custom_fz_name.isalnum()) and (custom_fz_name.isascii()):
return {
"GIT_COMMIT": commit,
"GIT_BRANCH": branch,