Skip to content

Commit

Permalink
Allow "webp" in image format names (ivov#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Feb 9, 2023
1 parent 645a7df commit 13cc097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ast/utils/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function isAllowedLowercase(value: string) {

if (VERSION_REGEX.test(value)) return true;

return ["bmp", "tiff", "gif", "jpg", "jpeg", "png"].includes(value);
return ["bmp", "tiff", "gif", "jpg", "jpeg", "png", "webp"].includes(value);
}

function isUrl(str: string) {
Expand Down

0 comments on commit 13cc097

Please sign in to comment.