Skip to content

Commit

Permalink
add .webp extension
Browse files Browse the repository at this point in the history
  • Loading branch information
artgris committed Mar 21, 2024
1 parent 330ebed commit 6544e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helpers/FileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getRegex(): string

return match ($this->getType()) {
'media' => '/\.(mp4|ogg|webm)$/i',
'image' => '/\.(gif|png|jpe?g|svg)$/i',
'image' => '/\.(gif|png|jpe?g|svg|webp)$/i',
default => '/.+$/i',
};
}
Expand Down

0 comments on commit 6544e06

Please sign in to comment.