Skip to content

Fix for DESCRIPTION tag#6

Open
dahabi wants to merge 1 commit intomanoj-nama:masterfrom
BuildFire:master
Open

Fix for DESCRIPTION tag#6
dahabi wants to merge 1 commit intomanoj-nama:masterfrom
BuildFire:master

Conversation

@dahabi
Copy link
Copy Markdown

@dahabi dahabi commented Apr 27, 2017

Sometimes we got an event with DESCRIPTION contains colon as below:

BEGIN:VEVENT
UID:calendar.855.field_calendar_dates.0
CREATED:20170120T174441Z
DESCRIPTION:Bingo every Tuesday and Friday\n11:00 am - 2:00 pm\nAt the Fran
kfort Township Community Room\nCall for more information 815-806-2776
DTSTART;TZID=America/Chicago:20170502T110000
DTEND;TZID=America/Chicago:20170502T110000
LAST-MODIFIED:20170120T174441Z
SUMMARY:Senior Bingo
URL;TYPE=URI:http://www.frank.com/node/855
END:VEVENT

currently the parser split each line in two parts key and value , and its split by colon , so when we have multiple colons in the description line as above , the parser will take a part of it .
the fix is to take all the text after the first colon and set it in value variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant