Skip to content

Commit

Permalink
Update internal/verify/validate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Kit Ewbank <[email protected]>
  • Loading branch information
YakDriver and ewbankkit authored Mar 26, 2024
1 parent 93af107 commit cd9b810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/verify/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func ValidIAMPolicyJSON(v interface{}, k string) (ws []string, errors []error) {
}

if first := value[:1]; first != "{" {
switch value[:1] {
switch first {
case " ", "\t", "\r", "\n":
errors = append(errors, fmt.Errorf("%q contains an invalid JSON policy: leading space characters are not allowed", k))
case `"`:
Expand Down

0 comments on commit cd9b810

Please sign in to comment.