Skip to content

Commit

Permalink
Update ImageName.java
Browse files Browse the repository at this point in the history
added Ipv6 literal
  • Loading branch information
Devashishbasu committed Jan 21, 2024
1 parent 7c0a3b8 commit 8383ea6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ private boolean isRegistryValidPathComponent() {
private static final String NAME_COMPONENT_REGEXP = "[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?";

// https://github.com/docker/docker/blob/04da4041757370fb6f85510c8977c5a18ddae380/vendor/github.com/docker/distribution/reference/regexp.go#L25
private static final String DOMAIN_COMPONENT_REGEXP = "(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])";
private static final String DOMAIN_COMPONENT_REGEXP = "(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]|" + "\\[(?:[a-fA-F0-9:]+)\\])";

// ==========================================================

Expand Down

0 comments on commit 8383ea6

Please sign in to comment.