Skip to content

Commit

Permalink
add more image extensions to PointImage test regex
Browse files Browse the repository at this point in the history
  • Loading branch information
functorism committed Aug 24, 2024
1 parent 1879fb3 commit fde1748
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|bmp|gif|ico|svg)$/.test(url.pathname);
}
return false;
}
Expand Down

0 comments on commit fde1748

Please sign in to comment.