ical.js
ical.js copied to clipboard
Infinite loop caused by invalid recurrence
Reproducible on latest main.
To reprocude, we can use the recur_iterator_test.js and add the following code:
testRRULE('FREQ=MONTHLY;BYDAY=1TH;BYSETPOS=2', {
dtStart: '2015-01-11T08:00:00',
dates: [
'2015-02-05T08:00:00'
]
});
after that, run
grunt test-node:single --test=test/recur_iterator_test.js
PS: I believe the problem in inside the next_month function but I'm not sure how to fix it.
Hi, I experienced that too and it acutally crashed my Nextcloud calender and some other calender applications that probably use ical.js
This should definetly be fixed and it's sad to see this unresponded after a whole year.