mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 19:38:16 +08:00
This commit is contained in:

committed by
Tom Pallister

parent
b60d26e1c6
commit
9db4273f18
@ -6,7 +6,7 @@ namespace Ocelot.Configuration.Creator
|
||||
{
|
||||
public class UpstreamTemplatePatternCreator : IUpstreamTemplatePatternCreator
|
||||
{
|
||||
private const string RegExMatchEverything = "[0-9a-zA-Z].*";
|
||||
private const string RegExMatchOneOrMoreOfEverything = ".+";
|
||||
private const string RegExMatchEndString = "$";
|
||||
private const string RegExIgnoreCase = "(?i)";
|
||||
private const string RegExForwardSlashOnly = "^/$";
|
||||
@ -37,7 +37,7 @@ namespace Ocelot.Configuration.Creator
|
||||
|
||||
foreach (var placeholder in placeholders)
|
||||
{
|
||||
upstreamTemplate = upstreamTemplate.Replace(placeholder, RegExMatchEverything);
|
||||
upstreamTemplate = upstreamTemplate.Replace(placeholder, RegExMatchOneOrMoreOfEverything);
|
||||
}
|
||||
|
||||
if (upstreamTemplate == "/")
|
||||
|
Reference in New Issue
Block a user