From 187ee2e312061aa47f85d355b42f8f2b70f16c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Mon, 15 Jun 2026 17:50:30 +0200 Subject: [PATCH] fix: parse Wikipedia 12h time format and sort upcoming matches with NULLS LAST Wikipedia stores match times as "6:00 p.m." (1-digit hour) which didn't match the \d{2}:\d{2} regex, producing NULL for those matches. Introduced parseTime12h() to handle 1-2 digit hours + AM/PM and convert to 24h. Also sort upcomingMatches by NULLS LAST so unscheduled games appear after timed ones rather than first. Dropped "openfootball" data attribution. Co-Authored-By: Claude Sonnet 4.6 --- app/layout.tsx | 2 +- lib/graphql/resolvers/index.ts | 2 +- lib/wiki-scraper.ts | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index d75bb03..b715a64 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -37,7 +37,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
{children}