Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some versions of Outlook generate using lowercase fields, causing the record to be skipped. #16

Open
bnlucas opened this issue Oct 17, 2016 · 1 comment

Comments

@bnlucas
Copy link

bnlucas commented Oct 17, 2016

Some versions of Outlook generate the vCard file using lowercase fields, version: instead of VERSION: which causes vCardigan.parse to not find any fields.

https://github.com/brewster/vcardigan/blob/master/lib/vcardigan/vcard.rb#L32

begin:vcard
version:3.0
prodid:Microsoft-MacOutlook/f.1b.0.161010
...
end:vcard
@bnlucas bnlucas changed the title Some versions of Outlook generate using lowercase fields, this causes it to error Some versions of Outlook generate using lowercase fields, causing the record to be skipped. Oct 17, 2016
@bnlucas
Copy link
Author

bnlucas commented Oct 17, 2016

Found that changing begin:vcard to BEGIN:VCARD and and end:vcard to END:VCARD works.

https://github.com/brewster/vcardigan/blob/master/lib/vcardigan/vcard.rb#L183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant