1
0
Fork 0
mirror of https://github.com/LemmyNet/lemmy.git synced 2025-04-21 10:24:06 +00:00

Adding support for webp images on the front end. Fixes

This commit is contained in:
Dessalines 2020-05-08 14:02:06 -04:00
parent 2db6f35b7c
commit e6717c86ac

2
ui/src/utils.ts vendored
View file

@ -210,7 +210,7 @@ export function isMod(modIds: Array<number>, 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))`);