mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-06-28 02:50:32 +02:00
Add more utils
This commit is contained in:
3
src/lib/util/extract.ts
Normal file
3
src/lib/util/extract.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export function lastPathSegment(path: string): string {
|
||||
return path.substring(path.lastIndexOf('/'));
|
||||
}
|
Reference in New Issue
Block a user