From e52dfb7fef252f8e35c548d59b5ad31f070a9c28 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 9 Nov 2023 16:50:47 +0000 Subject: [PATCH] Bug fix GWR advance ticket date --- agenda/gwr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenda/gwr.py b/agenda/gwr.py index 6924449..5806939 100644 --- a/agenda/gwr.py +++ b/agenda/gwr.py @@ -14,7 +14,7 @@ def extract_weekday_date(html: str) -> date | None: """Furthest date of GWR advance ticket booking.""" # Compile a regular expression pattern to match the relevant table row pattern = re.compile( - r"\s*Weekdays\s*(.*?)\s*", re.DOTALL + r"\s*Weekdays\s*(.*?)(?:\*\*)?\s*", re.DOTALL ) # Search the HTML for the pattern