From: Dessalines Date: Fri, 8 May 2020 18:02:06 +0000 (-0400) Subject: Adding support for webp images on the front end. Fixes #703 X-Git-Url: http://these/git/%22https:/join-lemmy.org/static/readmes/%24%7Bargs.pageFn.jump%20n%7D?a=commitdiff_plain;h=e6717c86acd3156c04355a0797dc0c802d87ea6b;p=lemmy.git Adding support for webp images on the front end. Fixes #703 --- diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 2256a0c1..f18d996e 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -210,7 +210,7 @@ export function isMod(modIds: Array, creator_id: number): boolean { } const imageRegex = new RegExp( - /(http)?s?:?(\/\/[^"']*\.(?:jpg|jpeg|gif|png|svg))/ + /(http)?s?:?(\/\/[^"']*\.(?:jpg|jpeg|gif|png|svg|webp))/ ); const videoRegex = new RegExp(`(http)?s?:?(\/\/[^"']*\.(?:mp4))`);