(href: string)
| 174 | } |
| 175 | |
| 176 | function shouldSkipDirectoryHref(href: string): boolean { |
| 177 | const lower = href.trim().toLowerCase(); |
| 178 | return ( |
| 179 | lower.length === 0 || |
| 180 | lower.startsWith('#') || |
| 181 | lower.startsWith('?') || |
| 182 | lower.startsWith('javascript:') || |
| 183 | lower.startsWith('mailto:') |
| 184 | ); |
| 185 | } |
| 186 | |
| 187 | export function getDirectoryListingRootUrl(baseUrl: string): string | null { |
| 188 | return getDirectoryRootUrl(baseUrl)?.toString() ?? null; |
no outgoing calls
no test coverage detected