diff options
author | Florian Dold <florian@dold.me> | 2021-04-19 11:51:37 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-04-19 11:51:47 +0200 |
commit | ca6c47313cb010448a6881a94d183cad1ed94337 (patch) | |
tree | f4530ec727a9e01dc723cc55889f000bde3d62d9 /design-documents | |
parent | 2acbc5fa16efecfe0f7136be8d877f03baf0384e (diff) | |
download | docs-ca6c47313cb010448a6881a94d183cad1ed94337.tar.gz docs-ca6c47313cb010448a6881a94d183cad1ed94337.tar.bz2 docs-ca6c47313cb010448a6881a94d183cad1ed94337.zip |
fix regex
Diffstat (limited to 'design-documents')
-rw-r--r-- | design-documents/018-contract-json.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/design-documents/018-contract-json.rst b/design-documents/018-contract-json.rst index 7c626007..4208febc 100644 --- a/design-documents/018-contract-json.rst +++ b/design-documents/018-contract-json.rst @@ -46,7 +46,7 @@ In order to make it easy to get a canonical representation for JSON contract terms, the following restrictions apply: * Member names are restricted: Only strings matching the regular expression - ``0-9A-Z_a-z`` or the literal names ``$forgettable`` or ``$forgotten`` are + ``^[0-9A-Z_a-z]+$`` or the literal names ``$forgettable`` or ``$forgotten`` are allowed. This makes the sorting of object members easier, as RFC8785 requires sorting by UTF-16 code points. * Floating point numbers are forbidden. Numbers must be integers in the range |