mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-103384: Generalize the regex pattern BaseConfigurator.INDEX_PATTERN
to allow spaces and non-alphanumeric characters in keys. (GH-103391)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
parent
135098743a
commit
8d4052075e
4 changed files with 51 additions and 3 deletions
|
@ -685,7 +685,8 @@ resolve to ``'dev_team@domain.tld'`` and the string
|
|||
``'support_team@domain.tld'``. The ``subject`` value could be accessed
|
||||
using either ``'cfg://handlers.email.subject'`` or, equivalently,
|
||||
``'cfg://handlers.email[subject]'``. The latter form only needs to be
|
||||
used if the key contains spaces or non-alphanumeric characters. If an
|
||||
used if the key contains spaces or non-alphanumeric characters. Please note
|
||||
that the characters ``[`` and ``]`` are not allowed in the keys. If an
|
||||
index value consists only of decimal digits, access will be attempted
|
||||
using the corresponding integer value, falling back to the string
|
||||
value if needed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue