mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-09-02 11:05:29 +00:00
fixes #3841 this is a correction of the rewrite
This commit is contained in:
@@ -38,6 +38,7 @@ Thanks to: @dathbe.
|
|||||||
- [clock] Fixed missing icons when no other modules with icons is loaded (#3834)
|
- [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)
|
- [weather] Fixed handling of empty values in weathergov providers handling of precipitationAmount (#3859)
|
||||||
- [calendar] Fix regression handling of limit days (#3840)
|
- [calendar] Fix regression handling of limit days (#3840)
|
||||||
|
- [calendar] Fixed regression of calendarfetcherutils.shouldEventBeExcluded (#3841)
|
||||||
|
|
||||||
## [2.32.0] - 2025-07-01
|
## [2.32.0] - 2025-07-01
|
||||||
|
|
||||||
|
@@ -16,7 +16,7 @@ const CalendarFetcherUtils = {
|
|||||||
* until: the date until the event should be excluded.
|
* until: the date until the event should be excluded.
|
||||||
*/
|
*/
|
||||||
shouldEventBeExcluded (config, title) {
|
shouldEventBeExcluded (config, title) {
|
||||||
let filter = {
|
let result = {
|
||||||
excluded: false,
|
excluded: false,
|
||||||
until: null
|
until: null
|
||||||
};
|
};
|
||||||
@@ -55,14 +55,14 @@ const CalendarFetcherUtils = {
|
|||||||
|
|
||||||
if (CalendarFetcherUtils.titleFilterApplies(testTitle, filter, useRegex, regexFlags)) {
|
if (CalendarFetcherUtils.titleFilterApplies(testTitle, filter, useRegex, regexFlags)) {
|
||||||
if (until) {
|
if (until) {
|
||||||
filter.until = until;
|
result.until = until;
|
||||||
} else {
|
} else {
|
||||||
filter.excluded = true;
|
result.excluded = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return filter;
|
return result;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user