Skip to content

Commit

Permalink
fix: match all unsanitary characters
Browse files Browse the repository at this point in the history
Co-authored-by: Ivo Murrell <[email protected]>
  • Loading branch information
rowanmanning and ivomurrell committed Jan 8, 2025
1 parent ec9f3b3 commit a08b3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/docker/src/image-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit a08b3f6

Please sign in to comment.