mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-16 12:05:30 +09:00
Backport #32319 Fix #32316 --------- Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
1 parent
898f852d03
commit
a3b7b98336
2 files changed
+9
-2
No files matched your search
@@ -45,3 +45,7 @@ export async function imageInfo(blob) {
|
||||
|
||||
return {width, dppx};
|
||||
}
|
||||
|
||||
export function isImageFile(name) {
|
||||
return /\.(jpe?g|png|gif|webp|svg|heic)$/i.test(name);
|
||||
}
|
||||
Reference in new issue
Block a user