ics-to-json icon indicating copy to clipboard operation
ics-to-json copied to clipboard

Support values which contain colon characters

Open joeyhoer opened this issue 1 year ago • 0 comments

The following is a valid description.

DESCRIPTION:Join us at the event! RSVP Here: https://example.com

Currently, the description will be parsed only up to the second colon, i.e. "Join us at the event! RSVP Here"

A solution is to us regex to split the string rather than splitting on any colon character.

const lineData = line.split(/:(.*)/);

joeyhoer avatar Aug 05 '23 21:08 joeyhoer