broke windows

This commit is contained in:
ed 2021-05-13 22:58:23 +02:00
parent 58ba71a76f
commit bd367389b0

View file

@ -593,8 +593,8 @@ def sanitize_fn(fn, ok="", bad=[]):
["?", ""],
["*", ""],
]
for bad, good in [x for x in remap if x[0] not in ok]:
fn = fn.replace(bad, good)
for a, b in [x for x in remap if x[0] not in ok]:
fn = fn.replace(a, b)
bad.extend(["con", "prn", "aux", "nul"])
for n in range(1, 10):