MCPcopy Create free account
hub / github.com/devcontainers/cli / hasRegistryHostname

Function hasRegistryHostname

src/spec-node/containerFeatures.ts:485–492  ·  view source on GitHub ↗
(imageName: string)

Source from the content-addressed store, hash-verified

483}
484
485function hasRegistryHostname(imageName: string) {
486 if (imageName.startsWith('localhost/')) {
487 return true;
488 }
489 const dot = imageName.indexOf('.');
490 const slash = imageName.indexOf('/');
491 return dot !== -1 && slash !== -1 && dot < slash;
492}

Callers 1

updateRemoteUserUIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected