Don't capture 'Hive' if it exists in aerohive AP model name

This commit is contained in:
Eric A. Miller
2018-05-06 09:32:35 -04:00
parent 7e0ef60e24
commit 0ab688964f
2 changed files with 8 additions and 3 deletions

View File

@@ -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;