Skip to content

Commit

Permalink
Correct grammar for digest algorithm portion
Browse files Browse the repository at this point in the history
The current grammar specifies that the characters [A-Fa-f0-9_+.-] are
valid in the "algorithm" portion of a digest. This contradicts the
specification stating that "compliant implementations SHOULD use
sha256", as "sha256" does not match the above rule.

This commit fixes this issue by additionally allowing characters g-zG-Z
in the "algorithm" portion.

Signed-off-by: Fabian Freyer <[email protected]>
  • Loading branch information
fabianfreyer committed Apr 22, 2019
1 parent 39fd7ec commit 8e8fa5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ We define a _digest_ string to match the following grammar:

```EBNF
digest := algorithm ":" hex
algorithm := /[A-Fa-f0-9_+.-]+/
algorithm := /[A-Za-z0-9_+.-]+/
hex := /[A-Fa-f0-9]+/
```

Expand Down

0 comments on commit 8e8fa5d

Please sign in to comment.