match whole input with regex

This commit is contained in:
Tom Gardham-Pallister
2017-10-12 19:03:20 +01:00
parent b0131bb264
commit d0d74f0886
5 changed files with 72 additions and 22 deletions

View File

@ -41,8 +41,8 @@ namespace Ocelot.Configuration.Creator
}
var route = reRoute.ReRouteIsCaseSensitive
? $"{upstreamTemplate}{RegExMatchEndString}"
: $"{RegExIgnoreCase}{upstreamTemplate}{RegExMatchEndString}";
? $"^{upstreamTemplate}{RegExMatchEndString}"
: $"^{RegExIgnoreCase}{upstreamTemplate}{RegExMatchEndString}";
return route;
}