Skip to content

Commit

Permalink
Disallow '_' for calendar , referring to UTS35
Browse files Browse the repository at this point in the history
Make it clear "_" is not acceptable for calendar code
  • Loading branch information
FrankYFTang authored and leobalter committed Mar 28, 2022
1 parent 6d20de9 commit 0785d91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/displaynames.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ <h1>CanonicalCodeForDisplayNames ( _type_, _code_ )</h1>
1. Return _code_.
1. If _type_ is *"calendar"*, then
1. If _code_ does not match the Unicode Locale Identifier `type` nonterminal, throw a *RangeError* exception.
1. If _code_ uses any of the backwards compatibility syntax described in <a href="https://unicode.org/reports/tr35/#BCP_47_Conformance">Unicode Technical Standard #35 LDML § 3.3 BCP 47 Conformance</a>, throw a *RangeError* exception.
1. Let _code_ be the result of mapping _code_ to lower case as described in <emu-xref href="#sec-case-sensitivity-and-case-mapping"></emu-xref>.
1. Return _code_.
1. If _type_ is *"dateTimeField"*, then
Expand Down

0 comments on commit 0785d91

Please sign in to comment.