mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 15:50: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:
		
				
					committed by
					
						
						Thiago Loureiro
					
				
			
			
				
	
			
			
			
						parent
						
							bef40041ba
						
					
				
				
					commit
					88f31966d4
				
			@@ -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;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user