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

versionStrict(true) does not apply to parameters

Open DerBlade opened this issue 8 years ago • 1 comments

I am trying to convert a V2.1 Vcard into V4.0 by reading it with your library and writing it to another file. But it seems, that setting 'versionStrict(true)' only removes unsupported properties and not parameters from the output. For example, the "EMAIL" property has the parameters "INTERNET" and "PRIMARY" in my input file and in the output file they are still present. Is this a bug, or is this behaviour intended?

DerBlade avatar Aug 02 '16 03:08 DerBlade

Hi DerBlade,

Thank you for reporting this. You are right, versionStrict does not remove unsupported parameter values. I will look into addressing this.

"PRIMARY" is not a valid EMAIL parameter value under any version, so this would always remain.

mangstadt avatar Aug 03 '16 00:08 mangstadt