Skip to content

Commit 230842b

Browse files
authored
Merge pull request #220 from functorism/master
add more image extensions to PointImage test regex
2 parents 1b76c4f + d1c821b commit 230842b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Points/PointImage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function PointImage({ data, sx }) {
1515
return false;
1616
}
1717
if (url) {
18-
return /\.(jpg|jpeg|png)$/.test(url.pathname);
18+
return /\.(jpg|jpeg|png|webp|gif|svg)$/.test(url.pathname);
1919
}
2020
return false;
2121
}

0 commit comments

Comments
 (0)