mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 14:02:49 +08:00
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:
parent
bef40041ba
commit
88f31966d4
@ -40,7 +40,7 @@ namespace Ocelot.DependencyInjection
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user