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

Add entity address parser #37

Merged
merged 4 commits into from
Jul 30, 2024
Merged

Add entity address parser #37

merged 4 commits into from
Jul 30, 2024

Conversation

sam-kleiner
Copy link
Contributor

@sam-kleiner sam-kleiner commented Jul 30, 2024

Add entity address parser. This handles vcard addresses in the array format. It does not handle the loose label style. Most of the tests show empty addresses, because thats how the test data is, but there are some good examples in there. Used format as defined in https://datatracker.ietf.org/doc/html/rfc7483#autoid-50

array format:

["adr",{},"text",["","","","","CA","","US"]]

label:

["adr", {"label": "3005 Deziel Drive\\nWindsor\\nON\\nN8W 5A5\\nCanada"}, "text", ["", "", "", "", "", "", ""]]

@meeb
Copy link
Owner

meeb commented Jul 30, 2024

Lovely, thanks!

Edit: I did review your commits but didn't have anything else to comment so 👍🏻

@meeb meeb merged commit f1a3b74 into meeb:main Jul 30, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants