mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
lint
This commit is contained in:
parent
021f6d37d4
commit
413f852cf6
1 changed files with 4 additions and 2 deletions
|
@ -108,8 +108,10 @@ export const isImageFileHandle = (handle: FileSystemHandle | null) => {
|
|||
};
|
||||
|
||||
const getExtensionFromFilename = (filename?: string): string | null => {
|
||||
if (!filename) return null;
|
||||
const ext = filename.split('.').pop()?.toLowerCase();
|
||||
if (!filename) {
|
||||
return null;
|
||||
}
|
||||
const ext = filename.split(".").pop()?.toLowerCase();
|
||||
return ext || null;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue