Skip to content

Commit

Permalink
Add webp to image-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Cr4xy committed Feb 9, 2024
1 parent dfe083a commit 75bc87f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ function tokenToURL(token: Token) {
}

function isImageURL(url: URL) {
return /(bmp|gif|jpeg|jpg|png|svg)$/.test(url.pathname);
return /(bmp|gif|jpeg|jpg|png|svg|webp)$/.test(url.pathname);

Check warning on line 87 in packages/graphiql-react/src/editor/components/image-preview.tsx

View check run for this annotation

Codecov / codecov/patch

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

Added line #L87 was not covered by tests
}

0 comments on commit 75bc87f

Please sign in to comment.