From 379defc3c0a68f2c393283466f44626029fcc8ed Mon Sep 17 00:00:00 2001 From: klemek Date: Sun, 12 Apr 2026 13:09:46 +0200 Subject: [PATCH] fix: allow - in sub paths --- src/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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