fix: allow - in sub paths
This commit is contained in:
+1
-1
@@ -84,7 +84,7 @@ class StaplerRequestHandler(http.server.SimpleHTTPRequestHandler):
|
|||||||
self.registry.remove(sub_path)
|
self.registry.remove(sub_path)
|
||||||
|
|
||||||
def get_subpath(self) -> str | None:
|
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 match.group(1)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user