Don't capture 'Hive' if it exists in aerohive AP model name
This commit is contained in:
@@ -106,7 +106,7 @@ sub model {
|
||||
my $aerohive = shift;
|
||||
my $descr = $aerohive->description();
|
||||
|
||||
if ( $descr =~ m/\b((Hive|)AP\d+)\b/ix ) {
|
||||
if ( $descr =~ m/\b(?:Hive|)(AP\d+)\b/ix ) {
|
||||
return $1;
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user