text-vcard icon indicating copy to clipboard operation
text-vcard copied to clipboard

Strange race condition on vcf file with empty lines after NOTE:

Open vijaysar opened this issue 6 years ago • 1 comments

This is a very simple VCF file except for some reason it has empty lines after NOTE - perhaps from vCard export of outlook. This freezes with the simple script belo Default_vcf.txt w. Can you please fix this issue?

use Text::vCard::Addressbook; $address_book = Text::vCard::Addressbook->new({'source_file' => "Default.vcf"});

Default.vcf (\r\n not shown) BEGIN:VCARD VERSION:3.0 PRODID:Z-Push FN:Microsoft Cunningham N:Cunningham;Microsoft;;Marcie CIV; EMAIL;PREF=1:[email protected] TEL;TYPE=HOME,VOICE:(901) 225-8634 NOTE:

UID:C191AD2C-8658-49B0-9929-995B4A62396E X-RADICALE-NAME:C191AD2C-8658-49B0-9929-995B4A62396E.vcf END:VCARD

vijaysar avatar Nov 15 '18 23:11 vijaysar

Hi,

I'm not actively working on this project - but I'd take a pull request (with test).

Thanks

Leo

ranguard avatar Nov 16 '18 10:11 ranguard