MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / hasArchiveExtension

Function hasArchiveExtension

src/utils/zipLoaderPolicy.ts:46–49  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

44]);
45
46export function hasArchiveExtension(pathname: string): boolean {
47 const lower = pathname.toLowerCase();
48 return ARCHIVE_EXTENSIONS.some(ext => lower.endsWith(ext));
49}
50
51export function isArchiveMimeType(type: string): boolean {
52 return ARCHIVE_MIME_TYPES.has(type);

Callers 3

isArchiveUrlFunction · 0.90
isArchiveFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected