From 8d468f1f5c228578119535f780d9f8056eb56b47 Mon Sep 17 00:00:00 2001 From: BitterPanda63 Date: Wed, 4 Jun 2025 10:58:30 +0200 Subject: [PATCH] Fix invalid escape in match endpoints that causes a logg --- aikido_zen/helpers/match_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aikido_zen/helpers/match_endpoints.py b/aikido_zen/helpers/match_endpoints.py index 557aa743e..df1a3b708 100644 --- a/aikido_zen/helpers/match_endpoints.py +++ b/aikido_zen/helpers/match_endpoints.py @@ -45,7 +45,7 @@ def match_endpoints(route_metadata, endpoints): for wildcard in wildcards: route = wildcard["route"] - regex = re.compile(f"^{route.replace('*', '(.*)')}\/?$", re.IGNORECASE) + regex = re.compile(f"^{route.replace('*', '(.*)')}/?$", re.IGNORECASE) if regex.match(path): results.append(wildcard)