diff --git a/src/index.ts b/src/index.ts index 38209668..515f9743 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,7 +24,9 @@ async function createICS() { if (eventsData) fs.writeFileSync("UFC.ics", eventsData); // Filter for PPV events only - const ppvEvents = events.filter((event) => /UFC \d+/.test(event.name)); + const ppvEvents = events.filter( + (event) => !event.name.includes("Fight Night") + ); const formattedPPVEvents = ppvEvents.map((event) => formatEventForCalendar(event, "UFC-PPV") );