Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Thanks to: @dathbe.
- [calendar] Fixed broken unittest that only broke on the 1st of July and 1st of january (#3830)
- [clock] Fixed missing icons when no other modules with icons is loaded (#3834)
- [weather] Fixed handling of empty values in weathergov providers handling of precipitationAmount (#3859)
- [calendar] Fixed regression of calendarfetcherutils.shouldEventBeExcluded (#3841)

## [2.32.0] - 2025-07-01

Expand Down
9 changes: 4 additions & 5 deletions modules/default/calendar/calendarfetcherutils.js
Comment thread
sdetweil marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const CalendarFetcherUtils = {
* until: the date until the event should be excluded.
*/
shouldEventBeExcluded (config, title) {
let filter = {
let result = {
excluded: false,
until: null
};
Expand Down Expand Up @@ -52,17 +52,16 @@ const CalendarFetcherUtils = {
} else {
filter = filter.toLowerCase();
}

if (CalendarFetcherUtils.titleFilterApplies(testTitle, filter, useRegex, regexFlags)) {
if (until) {
filter.until = until;
result.until = until;
} else {
filter.excluded = true;
result.excluded = true; // change assignment
Comment thread
sdetweil marked this conversation as resolved.
}
break;
}
}
return filter;
return result; // return outer
Comment thread
sdetweil marked this conversation as resolved.
},

/**
Expand Down