Skip to content

Commit

Permalink
fix: evaluate named builder 'as' in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
jimschubert committed Sep 19, 2021
1 parent 02d4dfe commit 0bb0bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/rules/no_latest.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func processFrom(node *parser.Node, handler func(image string, builderName *stri

part := node.Next
for part != nil {
if part.Value == "as" {
if strings.ToLower(part.Value) == "as" {
isBuilder = true
} else {
if isBuilder {
Expand Down

0 comments on commit 0bb0bf7

Please sign in to comment.