diff --git a/src/handler.py b/src/handler.py index f129046..18e3000 100644 --- a/src/handler.py +++ b/src/handler.py @@ -84,7 +84,7 @@ class StaplerRequestHandler(http.server.SimpleHTTPRequestHandler): self.registry.remove(sub_path) def get_subpath(self) -> str | None: - if (match := re.match(r"^\/(\w+)\/$", self.path)) is not None: + if (match := re.match(r"^\/([\w-]+)\/$", self.path)) is not None: return match.group(1) return None