summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-04-19 11:51:37 +0200
committerFlorian Dold <florian@dold.me>2021-04-19 11:51:47 +0200
commitca6c47313cb010448a6881a94d183cad1ed94337 (patch)
treef4530ec727a9e01dc723cc55889f000bde3d62d9
parent2acbc5fa16efecfe0f7136be8d877f03baf0384e (diff)
downloaddocs-ca6c47313cb010448a6881a94d183cad1ed94337.tar.gz
docs-ca6c47313cb010448a6881a94d183cad1ed94337.tar.bz2
docs-ca6c47313cb010448a6881a94d183cad1ed94337.zip
fix regex
-rw-r--r--design-documents/018-contract-json.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/design-documents/018-contract-json.rst b/design-documents/018-contract-json.rst
index 7c62600..4208feb 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