fix: update regex comment

This commit is contained in:
Rhomel Chinsio
2020-01-22 15:36:58 +09:00
parent a9d35cc598
commit bce9cb5710

View File

@@ -148,7 +148,7 @@ func (p *plugin) findContainers(obj map[string]interface{}) error {
}
func isImageMatched(s, t string) bool {
// Tag values are limited to [a-zA-Z0-9_.-].
// Tag values are limited to [a-zA-Z0-9_.-{}].
pattern, _ := regexp.Compile("^" + t + "(@sha256)?(:[a-zA-Z0-9_.-{}]*)?$")
return pattern.MatchString(s)
}