Skip to content

Commit

Permalink
Specify bad-option for bad digit size option values
Browse files Browse the repository at this point in the history
Fixes #739
  • Loading branch information
aphillips authored Sep 9, 2024
1 parent a57e09e commit fc1140d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,16 @@ Implementations MAY define an upper limit on the resolved value
of a digit size option option consistent with that implementation's practical limits.

In most cases, the value of a digit size option will be a string that
encodes the value as a decimal integer.
encodes the value as a decimal integer greater than or equal to zero.
Implementations MAY also accept implementation-defined types as the value.
When provided as a string, the representation of a digit size option matches the following ABNF:
>```abnf
> digit-size-option = "0" / (("1"-"9") [DIGIT])
>```
If the value of a digit size option does not evaluate as a non-negative integer,
or if the value exceeds any implementation-defined upper limit
or any option-specific lower limit, a _Bad Option Error_ is emitted.

### Number Selection

Expand Down

0 comments on commit fc1140d

Please sign in to comment.