Add more utils

This commit is contained in:
2025-04-03 23:48:53 +02:00
parent c081127d35
commit f6fcfd354a
3 changed files with 8 additions and 7 deletions

3
src/lib/util/extract.ts Normal file
View File

@ -0,0 +1,3 @@
export function lastPathSegment(path: string): string {
return path.substring(path.lastIndexOf('/'));
}