Skip to content

Commit

Permalink
fix %
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Dec 20, 2024
1 parent 84e3b9a commit 416df20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcr/credential/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func validatePolicyAssertions(credential vc.VerifiableCredential) error {
}
for _, policy := range policies[1:] {
policySplit := strings.Split(policy, ":")
if len(policySplit)%2 != 0 {
if len(policySplit)%2 != 1 { // policy name and 2*n key/value pairs
return fmt.Errorf("invalid did:x509 policy '%s'", policy)
}
policyName := policySplit[0]
Expand Down

0 comments on commit 416df20

Please sign in to comment.