From 7529a93501105cb089db9b19207513906fbad4e4 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 20 Mar 2018 10:10:41 +0000 Subject: [PATCH] #382 invaid regexp syntax --- Changes | 6 ++++++ lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index d3b334b2..ff9b537f 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,9 @@ +2.039017 - 2018-03-20 + + [BUG FIXES] + + * #382 invaid regexp syntax + 2.039016 - 2018-03-19 [NEW FEATURES] diff --git a/lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm b/lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm index ded9af07..d34015e3 100644 --- a/lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm +++ b/lib/App/Netdisco/Worker/Plugin/Discover/Neighbors.pm @@ -247,7 +247,7 @@ sub store_neighbors { $remote_port = $c_port->{$entry}; if (defined $remote_port) { # clean weird characters - $remote_port =~ s/[^\d\/\.,()\w:- ]+//gi; + $remote_port =~ s/[^\d\s\/\.,()\w:-]+//gi; } else { info sprintf ' [%s] neigh - no remote port found for port %s at %s',