Skip to content

Commit 9caacb6

Browse files
aphillipseemeli
andauthored
Note the need to quote 2-digit (#691)
* Note the need to quote `2-digit` Per 2024-02-26 teleconference, add a note about the value `2-digit` * Update spec/registry.md Co-authored-by: Eemeli Aro <[email protected]> * Update spec/registry.md --------- Co-authored-by: Eemeli Aro <[email protected]>
1 parent 114222f commit 9caacb6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/registry.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,15 @@ appear in the formatted output.
786786
787787
The _field options_ are defined as follows:
788788
789+
> [!IMPORTANT]
790+
> The value `2-digit` for some _field options_ **must** be quoted
791+
> in the MessageFormat syntax because it starts with a digit
792+
> but does not match the `number-literal` production in the ABNF.
793+
> ```
794+
> .local $correct = {$someDate :datetime year=|2-digit|}
795+
> .local $syntaxError = {$someDate :datetime year=2-digit}
796+
> ```
797+
789798
The function `:datetime` has the following options:
790799
- `weekday`
791800
- `long`

0 commit comments

Comments
 (0)