ics-to-json
ics-to-json copied to clipboard
Support values which span multiple lines
Here is an axample of a valid value with spans two lines:
SUMMARY:Summer Kickball -
THURSDAY - 30 TEAMS
Any line which begins with a tab character should be concatenated onto the previous line. Currently only the first line is parsed and any preceding lines (beginning with tab characters) are ignored.
A simple solution is to just remove any newlines followed by a tab character.
icsData=icsData.replace(/(\r\n|\n|\r)\t/g, "");