fix: set page optionnal

This commit is contained in:
Darks 2020-07-17 00:27:45 +02:00
parent 1ef055f629
commit b2ea2ce6ad
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class PageConverter(BaseConverter):
# Matches integers for the topic number, then either nothing, a page
# number, a slug, or a page number followed by a slug
regex = r'(\d+)(?:/(\d+)|/fin)(?:/[\w-]+)?'
regex = r'(\d+)(?:/(\d+)|/fin)?(?:/[\w-]+)?'
object = None
def to_python(self, url):