Update _utils.py

Add more reserved names.
This commit is contained in:
Alan Xiao
2025-04-23 19:46:06 -04:00
committed by GitHub
parent 49311c2db6
commit ffe93ff484
+1 -1
View File
@@ -168,7 +168,7 @@ JSON_LD_RE = r'(?is)<script[^>]+type=(["\']?)application/ld\+json\1[^>]*>\s*(?P<
NUMBER_RE = r'\d+(?:\.\d+)?'
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}{ssd:s}"