Skip to content

Commit

Permalink
Revert "Refine error message when validating extension name (#845)"
Browse files Browse the repository at this point in the history
This reverts commit 005748c.

Signed-off-by: nbajaj90 <nbajaj90@gmail.com>
  • Loading branch information
nbajaj90 committed Mar 15, 2023
1 parent 244664f commit ca17907
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
2 changes: 1 addition & 1 deletion v2/event/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func validateExtensionName(key string) error {

for _, c := range key {
if !((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')) {
return errors.New("bad key, CloudEvents attribute names MUST consist of lower-case letters ('a' to 'z'), upper-case letters ('A' to 'Z') or digits ('0' to '9') from the ASCII character set")
return errors.New("bad key, CloudEvents attribute names MUST consist of lower-case letters ('a' to 'z') or digits ('0' to '9') from the ASCII character set")
}
}
return nil
Expand Down
40 changes: 0 additions & 40 deletions v2/event/extensions_test.go

This file was deleted.

0 comments on commit ca17907

Please sign in to comment.