diff --git a/ts/import-csv/StickyFooter.svelte b/ts/import-csv/StickyFooter.svelte index 3efc535ee..3ca552ace 100644 --- a/ts/import-csv/StickyFooter.svelte +++ b/ts/import-csv/StickyFooter.svelte @@ -15,12 +15,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export let onImport: () => void; const keyCombination = "Control+Enter"; + + function basename(path: String): String { + return path.split(/[\\/]/).pop()!; + }