mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 00:38:36 +00:00
Backport #32319 Fix #32316 --------- Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
@@ -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