Skip to content

Commit 8d468f1

Browse files
committed
Fix invalid escape in match endpoints that causes a logg
1 parent 6de402f commit 8d468f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aikido_zen/helpers/match_endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def match_endpoints(route_metadata, endpoints):
4545

4646
for wildcard in wildcards:
4747
route = wildcard["route"]
48-
regex = re.compile(f"^{route.replace('*', '(.*)')}\/?$", re.IGNORECASE)
48+
regex = re.compile(f"^{route.replace('*', '(.*)')}/?$", re.IGNORECASE)
4949

5050
if regex.match(path):
5151
results.append(wildcard)

0 commit comments

Comments
 (0)