From fde17486eb4c5ccde5c7bbde11e80ca04a009652 Mon Sep 17 00:00:00 2001 From: William Berglund Date: Sat, 24 Aug 2024 14:45:52 +0100 Subject: [PATCH] add more image extensions to PointImage test regex --- src/components/Points/PointImage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Points/PointImage.jsx b/src/components/Points/PointImage.jsx index d58492bc..6fa5f845 100644 --- a/src/components/Points/PointImage.jsx +++ b/src/components/Points/PointImage.jsx @@ -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; }