jens-maus / node-ical

NodeJS class for parsing iCalendar/ICS files
Apache License 2.0
118 stars 50 forks source link

Incorrect parsing of quoted string parameters in attendee #326

Closed Sense545 closed 3 weeks ago

Sense545 commented 2 months ago

ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;X-NUM-GUESTS=0;X-RESPONSE-COMMENT="Test link: https://example.com/test":mailto:test@example.com parses as

{
  params: {
    CUTYPE: 'INDIVIDUAL',
    ROLE: 'REQ-PARTICIPANT',
    PARTSTAT: 'ACCEPTED',
    'X-NUM-GUESTS': 0,
    'X-RESPONSE-COMMENT': 'Test link'
  },
  val: ' https://example.com/test:mailto:test@example.com'
}

instead of having the space and link inside the response comment. This kind of attendee response was generated by Google Calendar.

Related issue in peterbraden/ical.js kewisch/ical.js correctly parses and unquotes such values correctly test"quoted"string:with-colon