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

Support values which span multiple lines

Open joeyhoer opened this issue 1 year ago • 0 comments

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, "");

joeyhoer avatar Aug 05 '23 21:08 joeyhoer