diff options
author | 2018-12-05 15:07:37 -0500 | |
---|---|---|
committer | 2018-12-05 15:07:37 -0500 | |
commit | db467903efb374e34319a8f4283c0078ea4cfcf8 (patch) | |
tree | c1dd0e28d4e8723642b3d7c558333d9e6b081eda | |
parent | Add daily summary command (diff) |
Fix leaderboard parsing regex to support twitter handles
-rw-r--r-- | bot/seasons/christmas/adventofcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |