MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / shouldSkipDirectoryHref

Function shouldSkipDirectoryHref

src/hooks/urlLoaderPolicy.ts:176–185  ·  view source on GitHub ↗
(href: string)

Source from the content-addressed store, hash-verified

174}
175
176function 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
187export function getDirectoryListingRootUrl(baseUrl: string): string | null {
188 return getDirectoryRootUrl(baseUrl)?.toString() ?? null;

Callers 1

getDirectoryListingLinksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected