diff --git a/package-lock.json b/package-lock.json index f5462d2..487c7dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "rollup": "4.18.0", "rollup-plugin-serve": "2.0.2", "ts-jest": "29.1.5", - "typescript": "5.4.5" + "typescript": "5.5.4" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -10756,9 +10756,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.5.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", + "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", "dev": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index d97a99c..7085b42 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,6 @@ "rollup": "4.18.0", "rollup-plugin-serve": "2.0.2", "ts-jest": "29.1.5", - "typescript": "5.4.5" + "typescript": "5.5.4" } } diff --git a/src/utils/findActiveEvents.ts b/src/utils/findActiveEvents.ts index 9766060..8efb163 100644 --- a/src/utils/findActiveEvents.ts +++ b/src/utils/findActiveEvents.ts @@ -25,7 +25,7 @@ const isMatchingAnyPatterns = (item: CalendarEvent, config: Config) => { const trashTypes = config.pattern.filter(pat => pat.type !== 'others'); const patterns = trashTypes.map(pat => pat.pattern).filter(pattern => pattern !== undefined); - return patterns.length === 0 || patterns.some(pattern => item.content.summary.toLowerCase().includes(pattern!.toLowerCase())); + return patterns.length === 0 || patterns.some(pattern => item.content.summary.toLowerCase().includes(pattern.toLowerCase())); }; const isNotPastWholeDayEvent = (item: CalendarEvent, now: Date, dropAfter: boolean): boolean =>