add "ascii" as a special 'path-restrict' value
This commit is contained in:
@@ -154,6 +154,7 @@ Description
|
|||||||
depending on the local operating system
|
depending on the local operating system
|
||||||
* ``"unix"``: ``"/"``
|
* ``"unix"``: ``"/"``
|
||||||
* ``"windows"``: ``"\\\\|/<>:\"?*"``
|
* ``"windows"``: ``"\\\\|/<>:\"?*"``
|
||||||
|
* ``"ascii"``: ``"^0-9A-Za-z_."``
|
||||||
|
|
||||||
Note: In a string with 2 or more characters, ``[]^-\`` need to be
|
Note: In a string with 2 or more characters, ``[]^-\`` need to be
|
||||||
escaped with backslashes, e.g. ``"\\[\\]"``
|
escaped with backslashes, e.g. ``"\\[\\]"``
|
||||||
|
|||||||
@@ -730,6 +730,7 @@ class PathFormat():
|
|||||||
"auto" : "\\\\|/<>:\"?*" if WINDOWS else "/",
|
"auto" : "\\\\|/<>:\"?*" if WINDOWS else "/",
|
||||||
"unix" : "/",
|
"unix" : "/",
|
||||||
"windows": "\\\\|/<>:\"?*",
|
"windows": "\\\\|/<>:\"?*",
|
||||||
|
"ascii" : "^0-9A-Za-z_.",
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, extractor):
|
def __init__(self, extractor):
|
||||||
|
|||||||
Reference in New Issue
Block a user