mangstadt / ez-vcard

A vCard parser library for Java
Other
405 stars 93 forks source link

[Compatibility] Treat KIND values case-insensitive #140

Closed rfc2822 closed 1 year ago

rfc2822 commented 1 year ago

There are clients/servers which set KIND:GROUP instead of KIND:group although RFC 6350 specifies "group" (lower-case) and values are case-sensitive.

For better compatibility, I suggest to make the equals() calls in Kind.is… case-insensitive:

https://github.com/mangstadt/ez-vcard/blob/b8f0a18cad11ed6172e1c7e18b6d78f07fe4fabf/src/main/java/ezvcard/property/Kind.java#L114-L116

mangstadt commented 1 year ago

Fixed in https://github.com/mangstadt/ez-vcard/commit/acbeb6613e155918a90673977b4e94a360252fb1.

mangstadt commented 1 year ago

ez-vcard version 0.12.1 has been released, which includes this bug fix!