build: avoid writing \r in windows (#26888)
				
					
				
			In windows when using readFile `\n` are replaced with `\r\n` which causes issues when comparing golden files PR Close #26888
This commit is contained in:
		
							parent
							
								
									7865abf667
								
							
						
					
					
						commit
						6b1780d77e
					
				| @ -381,7 +381,7 @@ const memberDeclarationOrder: {[key: number]: number} = { | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| function stripEmptyLines(text: string): string { | function stripEmptyLines(text: string): string { | ||||||
|   return text.split('\n').filter(x => !!x.length).join('\n'); |   return text.split(/\r?\n/).filter(x => !!x.length).join('\n'); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** | /** | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user