Handle hyphens in challenge titles
This commit is contained in:
parent
aad333b470
commit
f308601bfc
1 changed files with 2 additions and 2 deletions
4
aoc
4
aoc
|
@ -208,10 +208,10 @@ class CLI(object):
|
||||||
page_resp.raise_for_status()
|
page_resp.raise_for_status()
|
||||||
|
|
||||||
matches = re.findall(
|
matches = re.findall(
|
||||||
r"--- Day \d{1,2}: ([\w \?!]+) ---", page_resp.content.decode()
|
r"--- Day \d{1,2}: ([\w\- \?!]+) ---", page_resp.content.decode()
|
||||||
)
|
)
|
||||||
assert len(matches) >= 1, "must be able to discover at least one day title"
|
assert len(matches) >= 1, "must be able to discover at least one day title"
|
||||||
day_title = matches[0]
|
day_title = matches[0].replace("-", " ")
|
||||||
|
|
||||||
# Work out the challenge's directory.
|
# Work out the challenge's directory.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue