mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-04 01:37:32 +03:00 
			
		
		
		
	
							parent
							
								
									633d71293f
								
							
						
					
					
						commit
						0904b3fec2
					
				| 
						 | 
					@ -512,7 +512,7 @@ export function mergeSimilarMediaTypes(
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export function expandDefaultServerVariables(url: string, variables: object = {}) {
 | 
					export function expandDefaultServerVariables(url: string, variables: object = {}) {
 | 
				
			||||||
  return url.replace(
 | 
					  return url.replace(
 | 
				
			||||||
    /(?:{)(\w+)(?:})/g,
 | 
					    /(?:{)([\w-.]+)(?:})/g,
 | 
				
			||||||
    (match, name) => (variables[name] && variables[name].default) || match,
 | 
					    (match, name) => (variables[name] && variables[name].default) || match,
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user