Commit 11377c80 authored by Robert Ricci's avatar Robert Ricci

Fix a bug with IOS switches with > 9 modules. Silly me, I had forgotten

that the \w character class includes digits, and that regexps are (by
default) greedy from left to right...
parent 79ff1acf
......@@ -1989,7 +1989,7 @@ sub readifIndex($) {
foreach my $rowref (@$rows) {
my ($name,$iid,$descr) = @$rowref;
if ($descr =~ /(\w*)(\d+)\/(\d+)$/) {
if ($descr =~ /(\D*)(\d+)\/(\d+)$/) {
my $type = $1;
my $module = $2;
my $port = $3;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment