Name cleanup + nbtscan improvements

This commit is contained in:
jokob-sk
2024-07-11 22:35:04 +10:00
parent 3ae0daad3c
commit bf90ee81c7
5 changed files with 54 additions and 37 deletions

View File

@@ -773,6 +773,7 @@ def cleanDeviceName(str, match_IP):
str = re.sub(r'\.\b', '', str) # trailing dot after words
str = re.sub(r'\.$', '', str) # trailing dot at the end of the string
str = str.replace(". (IP match)", " (IP match)") # Remove dot if (IP match) is added
mylog('debug', ["[cleanDeviceName] output: " + str])