Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for DESCRIPTION tag #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dahabi
Copy link

@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