Skip to content

adds support for properties with multiple values - #34

Closed
oliverpool wants to merge 1 commit into
emersion:masterfrom
oliverpool:strings-split-unescaped
Closed

adds support for properties with multiple values#34
oliverpool wants to merge 1 commit into
emersion:masterfrom
oliverpool:strings-split-unescaped

Conversation

@oliverpool

Copy link
Copy Markdown
Contributor

Continuing the work started by @GorthMohogany in #11 to address #5

When decoding, it splits the value if it contains unescaped ,

From the original PR I dropped the space removal (strings.TrimSpace(value)) since I couldn't find anything in the RFC supporting this operation.

Note that it raises further questions for fields containing unescaped commas, like in https://datatracker.ietf.org/doc/html/rfc6350#section-8 (however those can be addressed in a later PR)

GEO;TYPE=work:geo:46.772673,-71.282945

Co-authored-by: GorthMohogany <lugo.mark@gmail.com>
@oliverpool

Copy link
Copy Markdown
Contributor Author

Actually, I am wondering if we shouldn't let the comma as-is (i.e. no escaping / no unescaping): the application should interpret them how they like (and this lib should make it easy to escape them)

@oliverpool oliverpool mentioned this pull request Oct 23, 2024
@oliverpool

Copy link
Copy Markdown
Contributor Author

Superseded by #35

@oliverpool oliverpool closed this Oct 23, 2024
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.

1 participant