This commit is contained in:
Thomas
2022-12-23 19:44:52 +01:00
committed by William Casarin
parent e6a5126494
commit db763d07fe

View File

@@ -16,7 +16,7 @@ func isHttpsUrl(_ string: String) -> Bool {
}
func isImage(_ urlString: String) -> Bool {
let imageTypes = ["image/jpg", "image/jpeg", "image/png", "image/gif", "image/tiff", "image/bmp"]
let imageTypes = ["image/jpg", "image/jpeg", "image/png", "image/gif", "image/tiff", "image/bmp", "image/webp"]
guard let url = URL(string: urlString) else {
return false