this would previously convert properties that matched
'^([a-z]+)(\d+)$' even if they were not part of an indexed
properties series (which always start with 0).
This fixes previously wrongly converted properties:
-smbios1
-server2
if ($k =~ m/^([a-z]+)(\d+)$/) {
my $name = $1;
next if $idx_param->{$name};
- $idx_param->{$name} = 1;
- $base = "${name}[n]";
+ if ($2 == 0) {
+ $idx_param->{$name} = 1;
+ $base = "${name}[n]";
+ }
}
my $mapping = defined($stringfilemap) ? &$stringfilemap($name) : undef;
if ($k =~ m/^([a-z]+)(\d+)$/) {
my $name = $1;
next if $idx_param->{$name};
- $idx_param->{$name} = 1;
- $base = "${name}[n]";
+ if ($2 == 0) {
+ $idx_param->{$name} = 1;
+ $base = "${name}[n]";
+ }
}
$raw .= &$get_property_description($base, $style, $phash, $format, 0);