From 124f95d2fe2eb7663c3d1c309e19496e3d754d2b Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Fri, 2 Aug 2024 10:01:05 +0200 Subject: [PATCH] Fix regex with ending match --- gateway/mw_granular_access_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/mw_granular_access_test.go b/gateway/mw_granular_access_test.go index bbb274edc75e..e4cc9d6c6ff2 100644 --- a/gateway/mw_granular_access_test.go +++ b/gateway/mw_granular_access_test.go @@ -25,7 +25,7 @@ func TestGranularAccessMiddleware_ProcessRequest(t *testing.T) { APIName: api.Name, AllowedURLs: []user.AccessSpec{ { - URL: "^/*.", + URL: "^/*.$", Methods: []string{"GET"}, }, {