1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-05 12:58:29 +00:00

Update _utils.py

Resolve string termination issue.
This commit is contained in:
Alan Xiao 2025-04-23 20:02:15 -04:00 committed by GitHub
parent ffe93ff484
commit 126292524e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,7 @@ def IDENTITY(x):
NUMBER_RE = r'\d+(?:\.\d+)?'
WINDOWS_RESERVED_NAMES_RE = fr'({'|'.join(
WINDOWS_RESERVED_NAMES_RE = fr'({"|".join(
("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(