chore: release v0.22.2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ulas Kalayci
2026-04-21 17:23:30 +02:00
parent 40252ee0dc
commit 9f321851f8
5 changed files with 14 additions and 4 deletions
+4
View File
@@ -117,10 +117,14 @@ function expandRRULE(vevent, windowStart, windowEnd) {
const e = new Date(vevent.allDay ? vevent.dtend + 'T00:00:00Z' : vevent.dtend);
if (!isNaN(s) && !isNaN(e)) durationMs = e - s;
}
const countMatch = /;COUNT=(\d+)/i.exec(vevent.rrule);
const maxCount = countMatch ? parseInt(countMatch[1], 10) : null;
let current = startDate, iterations = 0;
const MAX_ITER = 1500;
while (current <= windowEnd && iterations < MAX_ITER) {
iterations++;
if (maxCount !== null && iterations > maxCount) break;
if (current >= windowStart) {
const occStart = current + timeSuffix;
let occEnd = null;