From e360037fda8cd460a3998b3a5c9426f7511a7303 Mon Sep 17 00:00:00 2001 From: Glax Date: Mon, 22 Apr 2024 04:43:08 +0200 Subject: [PATCH] Add "(?:/?)" to the end of all Regex RequestPaths --- Tranga/Server/RequestPath.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tranga/Server/RequestPath.cs b/Tranga/Server/RequestPath.cs index c8db596..cbf4d0d 100644 --- a/Tranga/Server/RequestPath.cs +++ b/Tranga/Server/RequestPath.cs @@ -13,7 +13,7 @@ internal struct RequestPath Func, ValueTuple> method) { this.HttpMethod = httpHttpMethod; - this.RegexStr = regexStr; + this.RegexStr = regexStr + "(?:/?)"; this.Method = method; } } \ No newline at end of file