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

Empty vcard show as valid #8

Open
xbgmsharp opened this issue Jun 8, 2012 · 1 comment
Open

Empty vcard show as valid #8

xbgmsharp opened this issue Jun 8, 2012 · 1 comment
Assignees

Comments

@xbgmsharp
Copy link

Empty vcard are count as valid even so there is no value.
Here are 2 samples:

BEGIN:VCARD
UID:4165-4FBBCC00-33-9470200.vcf
VERSION:3.0
CLASS:PUBLIC
PROFILE:VCARD
END:VCARD

Or

BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//Address Book 6.1.2//EN
UID:bb332361-6c7e-4782-babd-d7d5a5f158f4
END:VCARD

The count check should return something different than the NB card as there is no value.

@ghost ghost assigned pilsetnieks Jul 22, 2012
@xbgmsharp
Copy link
Author

I have been thinking about it, and i could find any other way than compare the entry and ensure they are not the only onee present. It does looks like a good idea as it there is 2 parsing.
What do you think would be a good approach to avoid non valid (empty) vcard.

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

2 participants