-
-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ICU-22747 MF2: Validate values of integer-valued options for :number …
…and :integer Previously, it wasn't an error to write a message like:: .local $foo = {1 :integer minimumIntegerDigits=foo} {{$foo}} This is an error according to the spec, because the `minimumIntegerDigits` option to `:integer` must have a value that's a non-negative integer. This change adds validation of options that must be integer-valued to the implementations of the built-in `:integer` and `:number` functions. Other options (most of which have small sets of string values that are allowed as valid options) are not validated yet.
- Loading branch information
1 parent
43cde6b
commit 1e0e151
Showing
3 changed files
with
66 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters