diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-11-15 08:55:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 00:55:50 +0000 |
commit | 6f1de0a9e5a58b63d0c64b1182b7686c742a97c1 (patch) | |
tree | cf02a20df53e4ad372fc3e7f74b8a78eab1324bb /web_src/js/utils.test.ts | |
parent | 68731c07c52d35b7b44db1c2f5f7a755efcc8c84 (diff) | |
download | gitea-6f1de0a9e5a58b63d0c64b1182b7686c742a97c1.tar.gz gitea-6f1de0a9e5a58b63d0c64b1182b7686c742a97c1.zip |
Add avif image file support (#32508)
Most modern browsers support it now
` Update ALLOWED_TYPES #96 ` https://gitea.com/gitea/docs/pulls/96
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/js/utils.test.ts')
-rw-r--r-- | web_src/js/utils.test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/utils.test.ts b/web_src/js/utils.test.ts index 647676bf20..ac9d4fab91 100644 --- a/web_src/js/utils.test.ts +++ b/web_src/js/utils.test.ts @@ -118,7 +118,7 @@ test('encodeURLEncodedBase64, decodeURLEncodedBase64', () => { }); test('file detection', () => { - for (const name of ['a.jpg', '/a.jpeg', '.file.png', '.webp', 'file.svg']) { + for (const name of ['a.avif', 'a.jpg', '/a.jpeg', '.file.png', '.webp', 'file.svg']) { expect(isImageFile({name})).toBeTruthy(); } for (const name of ['', 'a.jpg.x', '/path.png/x', 'webp']) { |