mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	Allow \n in doc comments
This commit is contained in:
		
							parent
							
								
									2fd6b85d7e
								
							
						
					
					
						commit
						05d5ac5a75
					
				@ -1,6 +1,6 @@
 | 
				
			|||||||
// remove indent in multi-line comments
 | 
					// remove indent in multi-line comments
 | 
				
			||||||
export const comment = (str: TemplateStringsArray, ...values: any[]) =>
 | 
					export const comment = (str: TemplateStringsArray, ...values: any[]) =>
 | 
				
			||||||
	str.reduce((acc, str, i) => `${acc}${str}${values[i]}`).replace(/^\s+/gm, "");
 | 
						str.reduce((acc, str, i) => `${acc}${str}${values[i]}`).replace(/^[^\S\n]+/gm, "");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export type RemovePrefix<
 | 
					export type RemovePrefix<
 | 
				
			||||||
	T extends string,
 | 
						T extends string,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user