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

Function isManifestUrl

src/utils/urlUtils.ts:247–254  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

245 * Check if URL points to a JSON manifest file.
246 */
247export function isManifestUrl(url: string): boolean {
248 try {
249 const pathname = new URL(url).pathname.toLowerCase();
250 return pathname.endsWith('.json');
251 } catch {
252 return false;
253 }
254}
255
256/**
257 * Enhanced error classification with cloud provider-specific CORS messages.

Callers 2

urlUtils.test.tsFile · 0.90
useUrlLoaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected