ranguard / text-vcard

Perl package to edit and create vCard(s) (RFC 2426)
22 stars 15 forks source link

Fix for Text::vCard::Node->types() #11

Closed kablamo closed 10 years ago

kablamo commented 10 years ago

Previously types() was returning all the keys from Text::vCard::Node->{params}. However that params hash contains more than just types. It contains all possible params like 1 => 'pref' for example which is not a type. Here is an example of the params hash dumped out on the command line:

    params         {
      1      "pref",
     work   "type"
   },

This pull request fixes types() so it only returns types.