From bfeb0d38b9c6eb6d663ace28c7e36e57cd979421 Mon Sep 17 00:00:00 2001 From: Chris Kalafarski Date: Thu, 6 Jun 2024 16:25:59 -0400 Subject: [PATCH] Fix pattern matching --- ci/src/slack-message-handler/builder.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/src/slack-message-handler/builder.mjs b/ci/src/slack-message-handler/builder.mjs index 079e66dd7..1726d09c6 100644 --- a/ci/src/slack-message-handler/builder.mjs +++ b/ci/src/slack-message-handler/builder.mjs @@ -106,7 +106,7 @@ export async function statusBlocks(event) { // The image tag (truncated), like // 165df6a const tag = imageName - .match(/:([a-z]+)?-?([a-f0-9]+)$/)[2] + .match(/:([a-z\-]+)?([a-f0-9]+)$/)[2] .substring(0, 7); const ecrUrl = `https://${region}.console.aws.amazon.com/ecr/repositories/private/${accountId}/${repoName}?region=${region}`;