arran4 / golang-ical

A ICS / ICal parser and serialiser for Golang.
Apache License 2.0
297 stars 73 forks source link

Already escaped symbols get double escaped #68

Closed JM-Lemmi closed 7 months ago

JM-Lemmi commented 1 year ago

Parsing an already escaped semicolon \; creates a double backslah \\;

https://github.com/arran4/golang-ical/blob/d07bbcbc575ce4e3a9cd7ccf17236a3940b314eb/property.go#L100-L105

Probably just putting L104 to the beginning of the if statement should resolve this?

arran4 commented 1 year ago

Ok. Bit swamped right now with work. But 104 does seem erroneously placed. I will get around to this, but if you do a pr that's just that and has a test case I will merge it quickly.