Skip to content

Commit 4d0ddbf

Browse files
committed
Allow negative integers, rename section, drop fractionDigits
1 parent 16bbb63 commit 4d0ddbf

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

spec/registry.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ and `keys` is a list of strings,
452452
numeric selectors perform as described below.
453453
454454
1. Let `exact` be the serialized representation of the numeric value of `resolvedSelector`.
455-
(See [Determining Exact Literal Match](#determining-exact-literal-match) for details)
455+
(See [Exact Literal Match Serialization](#exact-literal-match-serialization) for details)
456456
1. Let `keyword` be a string which is the result of [rule selection](#rule-selection) on `resolvedSelector`.
457457
1. Let `resultExact` be a new empty list of strings.
458458
1. Let `resultKeyword` be a new empty list of strings.
@@ -528,20 +528,23 @@ for examples.
528528
> | 27 | `other` | 27 dní |
529529
> | 2.4 | `many` | 2,4 dne |
530530
531-
#### Determining Exact Literal Match
531+
#### Exact Literal Match Serialization
532532
533-
If the numeric value of `resolvedSelector` is a non-negative integer
533+
If the numeric value of `resolvedSelector` is an integer
534534
and none of the following options are set for `resolvedSelector`,
535-
the serialized form of the numeric value MUST match the ABNF for `digit-size-option`,
535+
the serialized form of the numeric value MUST match the ABNF defined below for `integer`,
536536
representing its decimal value:
537-
- `fractionDigits`
538537
- `minimumFractionDigits`
539538
- `minimumIntegerDigits`
540539
- `minimumSignificantDigits`
541540
- `maximumSignificantDigits`
542541
- `notation`
543542
- `style`
544543
544+
```abnf
545+
integer = "0" / ["-"] ("1"-"9") *DIGIT
546+
```
547+
545548
Otherwise, the serialized form of the numeric value is implementation-defined.
546549

547550
> [!IMPORTANT]

0 commit comments

Comments
 (0)