diff --git a/adafruit_wsgi/wsgi_app.py b/adafruit_wsgi/wsgi_app.py index 2ba4572..249fbdf 100644 --- a/adafruit_wsgi/wsgi_app.py +++ b/adafruit_wsgi/wsgi_app.py @@ -92,7 +92,7 @@ def on_request(self, methods: List[str], rule: str, request_handler: Callable): if var: # If named capture groups ever become a thing, use this regex instead # regex += "(?P<" + var.group("var") + r">[a-zA-Z0-9_-]*)\/" - regex += r"([a-zA-Z0-9_-]+)\/" + regex += r"([a-zA-Z0-9\._-]+)\/" else: regex += part + r"\/" regex += "?$" # make last slash optional and that we only allow full matches