Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a49b9dc

Browse files
authored
Specify bad-option for bad digit size option values (#882)
* Specify `bad-option` for bad digit size option values Fixes #739 * adopt 'non-negative integer'
1 parent c3d06cf commit a49b9dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/registry.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,16 @@ Implementations MAY define an upper limit on the resolved value
383383
of a digit size option option consistent with that implementation's practical limits.
384384
385385
In most cases, the value of a digit size option will be a string that
386-
encodes the value as a decimal integer.
386+
encodes the value as a non-negative integer.
387387
Implementations MAY also accept implementation-defined types as the value.
388388
When provided as a string, the representation of a digit size option matches the following ABNF:
389389
>```abnf
390390
> digit-size-option = "0" / (("1"-"9") [DIGIT])
391391
>```
392392
393+
If the value of a digit size option does not evaluate as a non-negative integer,
394+
or if the value exceeds any implementation-defined upper limit
395+
or any option-specific lower limit, a _Bad Option Error_ is emitted.
393396
394397
### Number Selection
395398

0 commit comments

Comments
 (0)