Commit 96a5d099 authored by Gijs Hendriksen's avatar Gijs Hendriksen
Browse files

Add png and gif to image extensions

parent 883d012f
...@@ -9,7 +9,7 @@ import SquareView from './SquareView'; ...@@ -9,7 +9,7 @@ import SquareView from './SquareView';
const MemberView = (props) => { const MemberView = (props) => {
let photo = props.member.photo; let photo = props.member.photo;
const regex = new RegExp(`^(${url}/media/public)/(avatars/[^\\.]+)\\.(jpg|jpeg)`); const regex = new RegExp(`^(${url}/media/public)/(avatars/[^\\.]+)\\.(jpg|jpeg|png|gif)`);
const matches = regex.exec(photo); const matches = regex.exec(photo);
if (matches) { if (matches) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment