Skip to content

Commit

Permalink
add support for jfif files
Browse files Browse the repository at this point in the history
  • Loading branch information
imahmood committed Mar 4, 2024
1 parent 033f402 commit 5c57c6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/file-storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
'formats' => [
'png' => 'jpg',
'webp' => 'jpg',
'jfif' => 'jpg',
'heic' => 'jpg',
],
],
Expand Down
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

function is_image(?string $filename): bool
{
return $filename && preg_match('/\.(webp|heic|jpg|jpeg|png)$/i', $filename);
return $filename && preg_match('/\.(webp|heic|jfif|jpg|jpeg|png)$/i', $filename);
}

0 comments on commit 5c57c6c

Please sign in to comment.