Use single quotes
This commit is contained in:
		
							parent
							
								
									6e277100ca
								
							
						
					
					
						commit
						6bf32afb0b
					
				
							
								
								
									
										22
									
								
								lib/utils.js
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								lib/utils.js
									
									
									
									
									
								
							| @ -8,17 +8,17 @@ exports.getImageMimeType = function getImageMimeType (imagePath) { | |||||||
|   var fileExtension = /[^.]+$/.exec(imagePath) |   var fileExtension = /[^.]+$/.exec(imagePath) | ||||||
| 
 | 
 | ||||||
|   switch (fileExtension[0]) { |   switch (fileExtension[0]) { | ||||||
|     case "bmp": |     case 'bmp': | ||||||
|       return "image/bmp" |       return 'image/bmp' | ||||||
|     case "gif": |     case 'gif': | ||||||
|       return "image/gif" |       return 'image/gif' | ||||||
|     case "jpg": |     case 'jpg': | ||||||
|     case "jpeg": |     case 'jpeg': | ||||||
|       return "image/jpeg" |       return 'image/jpeg' | ||||||
|     case "png": |     case 'png': | ||||||
|       return "image/png" |       return 'image/png' | ||||||
|     case "tiff": |     case 'tiff': | ||||||
|       return "image/tiff" |       return 'image/tiff' | ||||||
|     default: |     default: | ||||||
|       return undefined |       return undefined | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user