From e6717c86acd3156c04355a0797dc0c802d87ea6b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 8 May 2020 14:02:06 -0400 Subject: Adding support for webp images on the front end. Fixes #703 --- ui/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/src/utils.ts') 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))`); -- cgit v1.2.3