Skip to content

Commit

Permalink
Add missing webp rules
Browse files Browse the repository at this point in the history
  • Loading branch information
daun committed Oct 25, 2024
1 parent 0af8247 commit 7511efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/js/components/FileIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default {
case 'raw':
case 'nef':
case 'tiff':
case 'webp':
return 'image';
default:
return 'generic';
Expand Down
2 changes: 2 additions & 0 deletions tests/Filesystem/FilesystemAdapterTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ public function checks_if_a_file_is_an_image()
$this->assertTrue($this->adapter->isImage('test.JPEG'));
$this->assertTrue($this->adapter->isImage('test.PNG'));
$this->assertTrue($this->adapter->isImage('test.GIF'));
$this->assertTrue($this->adapter->isImage('test.webp'));
$this->assertTrue($this->adapter->isImage('test.WEBP'));
$this->assertTrue($this->adapter->isImage('test.avif'));
$this->assertTrue($this->adapter->isImage('test.AVIF'));
$this->assertFalse($this->adapter->isImage('test.txt'));
Expand Down

0 comments on commit 7511efd

Please sign in to comment.