feat: 🎸 add dicts (#1022)
This commit is contained in:
@@ -148,3 +148,7 @@ export const humanFileSize = (bytes: number, si: boolean = false) => {
|
||||
);
|
||||
return bytes.toFixed(1) + " " + units[u];
|
||||
};
|
||||
|
||||
export function getExtension(filename: string, defaultExt: string) {
|
||||
return /(?:\.([^.]+))?$/.exec(filename)[1] || defaultExt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user