Skip to content

Commit

Permalink
Merge pull request #220 from functorism/master
Browse files Browse the repository at this point in the history
add more image extensions to PointImage test regex
  • Loading branch information
timvisee authored Sep 16, 2024
2 parents 1b76c4f + d1c821b commit 230842b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Points/PointImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function PointImage({ data, sx }) {
return false;
}
if (url) {
return /\.(jpg|jpeg|png)$/.test(url.pathname);
return /\.(jpg|jpeg|png|webp|gif|svg)$/.test(url.pathname);
}
return false;
}
Expand Down

0 comments on commit 230842b

Please sign in to comment.