mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-20 00:03:19 -04:00
🔷 regex fix
This commit is contained in:
1 parent
bd52536107
commit
52b293a662
1 file changed
+2
-2
+2
-2
@@ -710,8 +710,8 @@ def cleanDeviceName(str, match_IP):
|
||||
str = re.sub(rgx, "", str)
|
||||
mylog('debug', ["[cleanDeviceName] name after regex : " + str])
|
||||
|
||||
# removing any trailing dots
|
||||
str = re.sub(r'\b\.(\s)', r'\1', str)
|
||||
str = re.sub(r'\.\b', '', str) # trailing dot after words
|
||||
str = re.sub(r'\.$', '', str) # trailing dot at the end of the string
|
||||
|
||||
mylog('debug', ["[cleanDeviceName] output: " + str])
|
||||
|
||||
|
||||
Reference in new issue
Block a user