Skip to content

Commit 2753a8c

Browse files
authored
Update packages/graphiql-react/src/editor/components/image-preview.tsx
1 parent 850803c commit 2753a8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphiql-react/src/editor/components/image-preview.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ function tokenToURL(token: Token) {
8484
}
8585

8686
function isImageURL(url: URL) {
87-
return /(bmp|gif|jpeg|jpg|png|svg|webp)$/.test(url.pathname);
87+
return /\.(bmp|gif|jpeg|jpg|png|svg|webp)$/.test(url.pathname);
8888
}

0 commit comments

Comments
 (0)