in ui/src/shared/parse-app-info.ts [31:50]
function findMatchingImage(images, repoName) {
if (!repoName) return null;
try {
// Find the matching image
const matchingImage = images.find((image) => image.startsWith(repoName));
if (matchingImage) {
// Extract the tag part between the colon and the "@" symbol
const partsAfterColon = matchingImage.split(":");
if (partsAfterColon.length > 1) {
const tagPart = partsAfterColon[1].split("@")[0];
return tagPart; // Return the part before the "@" symbol
}
}
} catch (err) {
console.error("Error processing images array:", err);
}
return null; // Return null if no match or parsing fails
}