mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-10 07:18:33 +00:00
Update _utils.py
Add more reserved names.
This commit is contained in:
parent
49311c2db6
commit
ffe93ff484
@ -168,7 +168,7 @@ def IDENTITY(x):
|
|||||||
NUMBER_RE = r'\d+(?:\.\d+)?'
|
NUMBER_RE = r'\d+(?:\.\d+)?'
|
||||||
|
|
||||||
WINDOWS_RESERVED_NAMES_RE = fr'({'|'.join(
|
WINDOWS_RESERVED_NAMES_RE = fr'({'|'.join(
|
||||||
("CON", "PRN", "AUX", "CLOCK$", "NUL")
|
("CON", "CONOUT$", "CONIN$", "PRN", "AUX", "CLOCK$", "NUL")
|
||||||
+ tuple(f"{name:s}{num:d}" for name, num in itertools.product(("COM", "LPT"), range(0, 10)))
|
+ tuple(f"{name:s}{num:d}" for name, num in itertools.product(("COM", "LPT"), range(0, 10)))
|
||||||
+ tuple(
|
+ tuple(
|
||||||
f"{name:s}{ssd:s}"
|
f"{name:s}{ssd:s}"
|
||||||
|
Loading…
Reference in New Issue
Block a user