We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d38f6a5 + 9782cbc commit 3ced934Copy full SHA for 3ced934
adafruit_wsgi/wsgi_app.py
@@ -92,7 +92,7 @@ def on_request(self, methods: List[str], rule: str, request_handler: Callable):
92
if var:
93
# If named capture groups ever become a thing, use this regex instead
94
# regex += "(?P<" + var.group("var") + r">[a-zA-Z0-9_-]*)\/"
95
- regex += r"([a-zA-Z0-9_-]+)\/"
+ regex += r"([a-zA-Z0-9\._-]+)\/"
96
else:
97
regex += part + r"\/"
98
regex += "?$" # make last slash optional and that we only allow full matches
0 commit comments