Fix handling negative values in rrule (e.g. batch-adding subevents) (#5476)

This commit is contained in:
Richard Schreiber
2025-09-22 08:08:34 +02:00
committed by GitHub
parent 3b30553880
commit b8b89f3040
2 changed files with 4 additions and 3 deletions

View File

@@ -1934,7 +1934,7 @@ function buildPoslist(bysetpos, timeset, start, end, ii, dayset) {
function iter(iterResult, options) {
var dtstart = options.dtstart, freq = options.freq, interval = options.interval, until = options.until, bysetpos = options.bysetpos;
var count = options.count;
if (count === 0 || interval === 0) {
if (count <= 0 || interval <= 0) {
return emitResult(iterResult);
}
var counterDate = datetime_DateTime.fromDate(dtstart);
@@ -3799,4 +3799,4 @@ var isFullyConvertible = totext.isFullyConvertible;
/***/ })
/******/ ]);
});
});