Skip to content

Commit

Permalink
Fix misplaced backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
owenjonesuob authored Feb 12, 2025
1 parent 99e8f0e commit aad96e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ check_iam_resource(statement) {
regex.match("(^arn:aws:lambda:.*:.*:function:[a-zA-Z0-9_-]+$)", statement.Resource[_])
} else {
is_array(statement.resources)
regex.match("(^\"\\$\\{\\s*aws_lambda_function\\.[^.]+\\.arn\\\\s*}:[*]\"$)", statement.resources[_])
regex.match("(^\"\\$\\{\\s*aws_lambda_function\\.[^.]+\\.arn\\s*\\}:[*]\"$)", statement.resources[_])
regex.match("(^aws_lambda_function\\.[^.]+\\.arn$)", statement.resources[_])
}

Expand Down

0 comments on commit aad96e6

Please sign in to comment.