This commit is contained in:
Jokob-sk
2023-03-12 07:32:35 +11:00
parent d8b4091043
commit 6dd1448667
4 changed files with 8 additions and 8 deletions

View File

@@ -1947,7 +1947,9 @@ def cleanResult(str):
str = str.replace(".lan", "")
str = str.replace(".home", "")
str = re.sub(r'-[a-fA-F0-9]{32}', '', str) # removing last part of e.g. Nest-Audio-ff77ff77ff77ff77ff77ff77ff77ff77
# str = str.replace(".", "")
# remove trailing dots
if str.endswith('.'):
str = str[:-1]
return str