]> mj.ucw.cz Git - pciids.git/blobdiff - PciIds/Address/Pci.pm
Menu added to editation forms
[pciids.git] / PciIds / Address / Pci.pm
index 54a15afdbbcb6cfe7769093b146ecf7a99da80c9..33e4afc0e210120e5c0112d11be4d32a05864c2e 100644 (file)
@@ -49,7 +49,7 @@ sub append( $$ ) {
        return ( undef, 'You can not add to leaf node' ) if( $self->leaf() );
        $suffix =~ s/ //g;
        return ( undef, "Invalid ID syntax" ) unless ( ( ( $self->get() !~ /^PC\/.*\// ) && ( $suffix =~ /^[0-9a-f]{4}$/ ) ) || ( ( $self->get() =~ /^PC\/.*\// ) && ( $suffix =~ /^[0-9a-f]{8}$/ ) ) );
-       return ( PciIds::Address::Base::new( $self->{'value'} . ( ( $self->{'value'} =~ /\/$/ ) ? '' : '/' ) . $suffix ), undef );
+       return ( PciIds::Address::new( $self->{'value'} . ( ( $self->{'value'} =~ /\/$/ ) ? '' : '/' ) . $suffix ), undef );
 }
 
 sub path( $ ) {