add "ascii+" as a special 'path-restrict' value (#4371)

This commit is contained in:
Mike Fährmann
2023-08-01 17:45:04 +02:00
parent c79359eb3a
commit 9d67655397
2 changed files with 5 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ Default
``"auto"``
Example
* ``"/!? (){}"``
* ``{" ": "_", "/": "-", "|": "-", ":": "-", "*": "+"}``
* ``{" ": "_", "/": "-", "|": "-", ":": "_-_", "*": "_+_"}``
Description
| A string of characters to be replaced with the value of
`path-replace <extractor.*.path-replace_>`__
@@ -219,7 +219,8 @@ Description
depending on the local operating system
* ``"unix"``: ``"/"``
* ``"windows"``: ``"\\\\|/<>:\"?*"``
* ``"ascii"``: ``"^0-9A-Za-z_."``
* ``"ascii"``: ``"^0-9A-Za-z_."`` (only ASCII digits, letters, underscores, and dots)
* ``"ascii+"``: ``"^0-9@-[\\]-{ #-)+-.;=!}~"`` (all ASCII characters except the ones not allowed by Windows)
Note: In a string with 2 or more characters, ``[]^-\`` need to be
escaped with backslashes, e.g. ``"\\[\\]"``