Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
96a5d099
Commit
96a5d099
authored
Jun 14, 2017
by
Gijs Hendriksen
Browse files
Add png and gif to image extensions
parent
883d012f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/components/MemberView.js
View file @
96a5d099
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment