(value: string | undefined)
| 23 | } |
| 24 | |
| 25 | function normalizeSubpathLabel(value: string | undefined): string { |
| 26 | if (!value) return ""; |
| 27 | const decoded = safeDecodeURIComponent(value).trim(); |
| 28 | return decoded.replace(/^[#^]+/, "").trim(); |
| 29 | } |
| 30 | |
| 31 | function basename(value: string): string { |
| 32 | const normalized = normalizePathLikeLabel(value); |
no test coverage detected