公告板
版本库
filestore
活动
搜索
登录
main
/
ltkj_peisapp_new
路泰科技体检小程序UI设计新版本
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
qxtj
qx
2025-08-06
fcc0076c3507bc4e544c3cb3915204937fa46f60
[ltkj_peisapp_new.git]
/
node_modules
/
@jridgewell
/
trace-mapping
/
src
/
strip-filename.ts
1
2
3
4
5
6
7
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);
}