Initial commit

This commit is contained in:
Haapy
2026-05-14 21:08:13 +00:00
commit 259959d713
2763 changed files with 1015351 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
/**
* Removes everything after the last "/", but leaves the slash.
*/
export default function stripFilename(path: string | undefined | null): string {
if (!path) return '';
const index = path.lastIndexOf('/');
return path.slice(0, index + 1);
}