update finfo
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ export const _ = {
|
||||
const file = Bun.file(path);
|
||||
|
||||
if (await file.exists()) {
|
||||
const arr = path.split("-");
|
||||
const arr = (path.split("/").pop() || "").split("-");
|
||||
const ext = arr.pop();
|
||||
const fname = arr.join("-") + "." + ext;
|
||||
const ctype = mime.getType(fname);
|
||||
|
||||
Reference in New Issue
Block a user