add "ascii" as a special 'path-restrict' value

pull/1253/head
Mike Fährmann 4 years ago
parent 5818c928c4
commit 5d4494b15f
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -154,6 +154,7 @@ Description
depending on the local operating system
* ``"unix"``: ``"/"``
* ``"windows"``: ``"\\\\|/<>:\"?*"``
* ``"ascii"``: ``"^0-9A-Za-z_."``
Note: In a string with 2 or more characters, ``[]^-\`` need to be
escaped with backslashes, e.g. ``"\\[\\]"``

@ -730,6 +730,7 @@ class PathFormat():
"auto" : "\\\\|/<>:\"?*" if WINDOWS else "/",
"unix" : "/",
"windows": "\\\\|/<>:\"?*",
"ascii" : "^0-9A-Za-z_.",
}
def __init__(self, extractor):

Loading…
Cancel
Save