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

Function addKey

src/utils/imageFileUtils.ts:113–120  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

111function getPreferredImageLookupKeys(normalizedName: string): string[] {
112 const keys: string[] = [];
113 const addKey = (key: string) => {
114 if (!key || keys.includes(key)) return;
115 keys.push(key);
116 const lowerKey = key.toLowerCase();
117 if (lowerKey !== key && !keys.includes(lowerKey)) {
118 keys.push(lowerKey);
119 }
120 };
121
122 if (!normalizedName.toLowerCase().startsWith('images/')) {
123 addKey(`images/${normalizedName}`);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected