Skip to content

Commit 0294b4f

Browse files
authored
Merge pull request #47 from joeladria/bugfix/plus-sign
2 parents e5771d3 + 74e63ea commit 0294b4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

netbox_device_view/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def process_interfaces(interfaces, ports_chassis, dev):
1212
continue
1313
# Convert to lowercase and replace common separators with hyphens
1414
# This replaces the original regex matching and if/else block
15-
stylename = re.sub(r"[/\.\s]+", "-", itf.name.lower())
15+
stylename = re.sub(r"[/\.\s\+]+", "-", itf.name.lower())
1616

1717
# Clean up multiple hyphens and leading/trailing hyphens
1818
stylename = re.sub(r"-+", "-", stylename).strip("-")

0 commit comments

Comments
 (0)