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';
const MemberView = (props) => {
let 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);
if (matches) {
Supports Markdown
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