mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix handling of nested custom page wildcard paths, closes #996
This commit is contained in:
parent
b37431976c
commit
5070425817
4 changed files with 11 additions and 4 deletions
|
|
@ -1204,7 +1204,7 @@ def route_pattern_from_filepath(filepath):
|
|||
re_bits.append("(?P<{}>[^/]*)".format(bit[1:-1]))
|
||||
else:
|
||||
re_bits.append(re.escape(bit))
|
||||
return re.compile("".join(re_bits))
|
||||
return re.compile("^" + "".join(re_bits) + "$")
|
||||
|
||||
|
||||
class NotFoundExplicit(NotFound):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue