Skip to content

Commit 119d6f9

Browse files
committed
disallow / as final key character
1 parent 970bdf3 commit 119d6f9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/protocol/core/v3.0.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,13 +1129,15 @@ that an implementation of this specification could be modular and
11291129
allow for different store implementations to be used.
11301130

11311131
The store interface defines a set of operations involving `keys` and
1132-
`values`. In the context of this interface, a `key` is any
1133-
string containing only characters in the ranges ``a-z``, ``A-Z``,
1134-
``0-9``, or in the set ``/.-_``, and a `value` is any sequence of
1135-
bytes. It is assumed that the store holds (`key`, `value`) pairs, with
1136-
only one such pair for any given `key`. I.e., a store is a mapping
1137-
from keys to values. It is also assumed that keys are case sensitive,
1138-
i.e., the keys "foo" and "FOO" are different.
1132+
`values`. In the context of this interface, a `key` is any string
1133+
containing only characters in the ranges ``a-z``, ``A-Z``, ``0-9``, or
1134+
in the set ``/.-_``, where the final character is **not** a ``/``
1135+
character. A `value` is any sequence of bytes.
1136+
1137+
It is assumed that the store holds (`key`, `value`) pairs, with only
1138+
one such pair for any given `key`. I.e., a store is a mapping from
1139+
keys to values. It is also assumed that keys are case sensitive, i.e.,
1140+
the keys "foo" and "FOO" are different.
11391141

11401142
The store interface also defines some operations involving
11411143
`prefixes`. In the context of this interface, a prefix is a string

0 commit comments

Comments
 (0)