From db467903efb374e34319a8f4283c0078ea4cfcf8 Mon Sep 17 00:00:00 2001 From: sco1 Date: Wed, 5 Dec 2018 15:07:37 -0500 Subject: Fix leaderboard parsing regex to support twitter handles --- bot/seasons/christmas/adventofcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/seasons/christmas/adventofcode.py') diff --git a/bot/seasons/christmas/adventofcode.py b/bot/seasons/christmas/adventofcode.py index 213ecf23..f840a449 100644 --- a/bot/seasons/christmas/adventofcode.py +++ b/bot/seasons/christmas/adventofcode.py @@ -656,7 +656,7 @@ class AocGlobalLeaderboard: soup = BeautifulSoup(raw_html, "html.parser") ele = soup.find_all("div", class_="leaderboard-entry") - exp = r"(?:[ ]{,2}(\d+)\))?[ ]+(\d+)\s+([\w\(\)#\-\d ]+)" + exp = r"(?:[ ]{,2}(\d+)\))?[ ]+(\d+)\s+([\w\(\)\#\@\-\d ]+)" lb_list = [] for entry in ele: -- cgit v1.2.3