Skip to content

error parsing blank RRULE line #109

@dtreskunov

Description

@dtreskunov

Sometime around Feb 7, 2020, this US Holidays calendar started including an empty RRULE. This breaks the parser.

Perhaps checking here that the line contains something after RRULE: would help?

BEGIN:VEVENT
SUMMARY:Christmas
DTSTART:20201225
DTEND:20201225
LOCATION:United States
DESCRIPTION:Visit https://calendarlabs.com/holidays/us/christmas.php to know more about Christmas. 
 Like us on Facebook: http://fb.com/calendarlabs to get updates
RRULE:
UID:[email protected]
DTSTAMP:20200205T111705Z
STATUS:CONFIRMED
TRANSP:TRANSPARENT
SEQUENCE:0
END:VEVENT
Error: Unknown RRULE property ''
    at /home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1191:23
    at Array.forEach (<anonymous>)
    at parseRrule (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1149:11)
    at parseLine (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1132:16)
    at Array.map (<anonymous>)
    at Function.parseString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:1110:41)
    at Function.RRule.fromString (/home/pi/MagicMirror/node_modules/rrule/dist/es5/rrule.js:2135:32)
    at Object.ical.objectHandlers.END (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/node-ical.js:73:23)
    at Object.handleObject (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:400:41)
    at Object.parseICS (/home/pi/MagicMirror/modules/default/calendar/vendor/ical.js/ical.js:441:20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions