diff --git a/src/helpers/getImage.ts b/src/helpers/getImage.ts index e3007ac7..0d6696da 100644 --- a/src/helpers/getImage.ts +++ b/src/helpers/getImage.ts @@ -13,7 +13,7 @@ import { warnUser } from "./warnUser"; export const removeMetadata = (url: string) => url.split("?")[0]; export const isImage = (url: string) => - url && /(png|gif|jpg|jpeg|webp)$/g.test(removeMetadata(url)); + url && /(png|jpg|jpeg|webp)$/g.test(removeMetadata(url)); // taken from loadImage(); export type ImageSource = string | URL | Buffer | ArrayBufferLike | Uint8Array | Image | Readable;