This commit is contained in:
garnier-quentin 2019-10-11 15:31:57 +02:00
commit 4cb9120fa9
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ my $lookup_type = [
sub define_type {
my ($self, %options) = @_;
return "unknown" unless (defined($options{desc}) && $options{desc} ne '');
foreach (@$lookup_type) {
if ($options{desc} =~ /$_->{re}/) {
return $_->{type};