mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 21:06:45 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			182 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			182 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
export function getFileExtension(path: string): string {
 | 
						|
	if (!path) {
 | 
						|
		return '';
 | 
						|
	}
 | 
						|
	const index = path.lastIndexOf('.');
 | 
						|
	return index !== -1 ? path.substring(index + 1) : '';
 | 
						|
}
 |