We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e5771d3 + 74e63ea commit 0294b4fCopy full SHA for 0294b4f
1 file changed
netbox_device_view/utils.py
@@ -12,7 +12,7 @@ def process_interfaces(interfaces, ports_chassis, dev):
12
continue
13
# Convert to lowercase and replace common separators with hyphens
14
# This replaces the original regex matching and if/else block
15
- stylename = re.sub(r"[/\.\s]+", "-", itf.name.lower())
+ stylename = re.sub(r"[/\.\s\+]+", "-", itf.name.lower())
16
17
# Clean up multiple hyphens and leading/trailing hyphens
18
stylename = re.sub(r"-+", "-", stylename).strip("-")
0 commit comments