Skip to content

Commit

Permalink
changed tag validation check
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
  • Loading branch information
Xiaoxuan Wang committed Aug 27, 2024
1 parent e321247 commit 14ba46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/contentutil/reference.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ func IsDigest(tagOrDigest string) bool {

// IsValidTag checks if the given string is a valid tag.
func IsValidTag(tag string) bool {
return registry.Reference{Reference: tag}.ValidateReferenceAsTag() == nil
return registry.Reference{Reference: tag}.ValidateReferenceAsDigest() != nil
}

0 comments on commit 14ba46b

Please sign in to comment.