ics-to-json
ics-to-json copied to clipboard
Support values which contain colon characters
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(/:(.*)/);