Enable image lens for WebP (#2126)
This commit is contained in:
@@ -3,7 +3,7 @@ import { Lens } from "./lenses"
|
|||||||
const imageLens: Lens = {
|
const imageLens: Lens = {
|
||||||
lensName: "response.image",
|
lensName: "response.image",
|
||||||
isSupportedContentType: (contentType) =>
|
isSupportedContentType: (contentType) =>
|
||||||
/\bimage\/(?:gif|jpeg|png|bmp|svg\+xml|x-icon|vnd\.microsoft\.icon)\b/i.test(
|
/\bimage\/(?:gif|jpeg|png|webp|bmp|svg\+xml|x-icon|vnd\.microsoft\.icon)\b/i.test(
|
||||||
contentType
|
contentType
|
||||||
),
|
),
|
||||||
renderer: "imageres",
|
renderer: "imageres",
|
||||||
|
|||||||
Reference in New Issue
Block a user