[path] support multiple characters in path-restrict objects (#1707)

This commit is contained in:
Mike Fährmann
2025-06-12 12:40:21 +02:00
parent 16fc5e0d68
commit 5b60c66e0f
2 changed files with 23 additions and 5 deletions

View File

@@ -207,11 +207,12 @@ Default
``"auto"``
Example
* ``"/!? (){}"``
* ``{" ": "_", "/": "-", "|": "-", ":": "_-_", "*": "_+_"}``
* ``{"/": "_", "+": "_+_", "({[": "(", "]})": ")", "a-z": "*"}``
Description
| A string of characters to be replaced with the value of
| A ``string`` of characters to be replaced with the value of
`path-replace <extractor.*.path-replace_>`__
| or an object mapping invalid/unwanted characters to their replacements
| or an ``object`` mapping invalid/unwanted characters, character sets,
or character ranges to their replacements
| for generated path segment names.
Special values: