try to capture all the names

This commit is contained in:
Eric Miller
2006-02-21 03:25:41 +00:00
parent 10b4611e81
commit 9fc965d095

View File

@@ -137,7 +137,7 @@ sub model {
return '303' if (defined $descr and $descr =~ /\D303\D/); return '303' if (defined $descr and $descr =~ /\D303\D/);
return '304' if (defined $descr and $descr =~ /\D304\D/); return '304' if (defined $descr and $descr =~ /\D304\D/);
return 'BPS' if ($model =~ /BPS2000/i); return 'BPS' if ($model =~ /BPS2000/i);
return $2 if ($model =~ /(BayStack|EthernetRoutingSwitch|EthernetSwitch)(\d+)/); return $2 if ($model =~ /(ES|ERS|BayStack|EthernetRoutingSwitch|EthernetSwitch)(\d+)/);
return $model; return $model;
} }