Skip to content

Commit 3ced934

Browse files
authored
Merge pull request #12 from dbisu/regex-update
Update Regex to allow the . character in paths
2 parents d38f6a5 + 9782cbc commit 3ced934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_wsgi/wsgi_app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def on_request(self, methods: List[str], rule: str, request_handler: Callable):
9292
if var:
9393
# If named capture groups ever become a thing, use this regex instead
9494
# regex += "(?P<" + var.group("var") + r">[a-zA-Z0-9_-]*)\/"
95-
regex += r"([a-zA-Z0-9_-]+)\/"
95+
regex += r"([a-zA-Z0-9\._-]+)\/"
9696
else:
9797
regex += part + r"\/"
9898
regex += "?$" # make last slash optional and that we only allow full matches

0 commit comments

Comments
 (0)