Skip to content

Commit 6df904f

Browse files
authored
Fix regex pattern for character conversion
1 parent d32fa03 commit 6df904f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/module_utils/netbox_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ def _to_slug(self, value):
14261426
return value
14271427
else:
14281428
removed_chars = re.sub(r"[^\-\.\w\s]", "", value)
1429-
convert_chars = re.sub(r"[\-\.\s]+", "-", removed_chars)
1429+
convert_chars = re.sub(r"[\-\.\s]", "-", removed_chars)
14301430
return convert_chars.strip().lower()
14311431

14321432
def _normalize_data(self, data):

0 commit comments

Comments
 (0)