From a08b3f6189df213f5525b1892c567f8e91aaf142 Mon Sep 17 00:00:00 2001 From: Rowan Manning Date: Wed, 8 Jan 2025 11:55:42 +0000 Subject: [PATCH] fix: match all unsanitary characters Co-authored-by: Ivo Murrell --- plugins/docker/src/image-info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/docker/src/image-info.ts b/plugins/docker/src/image-info.ts index efb52b816..5b098bdd3 100644 --- a/plugins/docker/src/image-info.ts +++ b/plugins/docker/src/image-info.ts @@ -8,7 +8,7 @@ export function buildImageName({ registry, name }: { registry: string; name: str // We're just doing some basic sanitization now to avoid git tags causing issues. // If the tag isn't valid then Docker will error so it's not high risk function sanitizeDockerTag(tag: string): string { - return tag.replace(/[^a-z0-9\._-]+/i, '') + return tag.replace(/[^a-z0-9\._-]+/gi, '') } export function getImageTagsFromEnvironment({