jens-maus / node-ical

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

Attendee is not parsed properly (e.g. if there is more than one, only one is returned, not an Array) #302

Open titanism opened 7 months ago

titanism commented 7 months ago

Right now if you have multiple ATTENDEE properties in an ICS file, then only one is parsed.

    "attendee": {
      "params": {
        "ROLE": "REQ-PARTICIPANT",
        "PARTSTAT": "ACCEPTED",
        "DELEGATED-FROM": "matt@example.com",
        "CN": "John"
      },
      "val": "MAILTO:john@example.com"
    },
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;DELEGATED-FROM="matt@examp
 le.com";CN="John":MAILTO:john@example.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=DELEGATED;DELEGATED-TO="john@exampl
 e.com";CN="Smith, Matt; (\"Sales\")":MAILTO:matt@example.com
Sense545 commented 2 months ago

Pretty sure \" is not allowed in quoted-value according to the RFC. In a similar issue with X-RESPONSE-COMMENT, Google Calendar escapes double quotes as ", which two of the three parsing libraries I found does not handle correctly.