change config file's name regex pattern (#1014)

change file name pattern to accept files name by dev's conditions.
This commit is contained in:
Ali Rasoulian 2019-09-23 18:59:18 +03:30 committed by Thiago Loureiro
parent bef40041ba
commit 88f31966d4

View File

@ -40,7 +40,7 @@ namespace Ocelot.DependencyInjection
const string globalConfigFile = "ocelot.global.json"; const string globalConfigFile = "ocelot.global.json";
const string subConfigPattern = @"^ocelot\.[a-zA-Z0-9]+\.json$"; const string subConfigPattern = @"^ocelot\.(.*?)\.json$";
string excludeConfigName = env?.EnvironmentName != null ? $"ocelot.{env.EnvironmentName}.json" : string.Empty; string excludeConfigName = env?.EnvironmentName != null ? $"ocelot.{env.EnvironmentName}.json" : string.Empty;