Skip to content

Commit

Permalink
mini fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Apr 3, 2024
1 parent 2ac3dce commit 5cd9e21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const LabledLink = ({
};

const isImageUrl = (url: string) => {
return url.match(/\.(jpeg|jpg|gif|png)?\?.*$/) != null;
return url.match(/\.(jpeg|jpg|gif|png)(\?.*)?$/) != null;
};

const useMenuState = () => {
Expand Down

0 comments on commit 5cd9e21

Please sign in to comment.