Skip to content

Commit

Permalink
Merge pull request #11069 from MikeMcQuaid/github_packages_more_inval…
Browse files Browse the repository at this point in the history
…id_versions

github_packages: rewrite more invalid versions.
  • Loading branch information
MikeMcQuaid committed Apr 8, 2021
2 parents 5522355 + aafc5b6 commit a553452
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/github_packages.rb
Expand Up @@ -112,7 +112,9 @@ def self.image_formula_name(formula_name)

def self.image_version_rebuild(version_rebuild)
# invalid docker tag characters
version_rebuild.tr("+", ".")
# TODO: consider changing the actual versions here and make an audit to
# avoid these weird characters being used
version_rebuild.gsub(/[+#~]/, ".")
end

private
Expand Down

0 comments on commit a553452

Please sign in to comment.