diff --git a/unshackle/core/utilities.py b/unshackle/core/utilities.py index 22c0b75..c04150b 100644 --- a/unshackle/core/utilities.py +++ b/unshackle/core/utilities.py @@ -131,7 +131,7 @@ def sanitize_filename(filename: str, spacer: str = ".") -> str: # From original repo. # if spacer == ".": # filename = re.sub(r" - ", spacer, filename) # title separators to spacer (avoids .-. pattern) - filename = re.sub(r"[:; ]", spacer, filename) # structural chars to (spacer) + filename = re.sub(r"[:;]", spacer, filename) # structural chars to (spacer) filename = re.sub(r"[\\*!?¿,'\"" "()<>|$#~]", "", filename) # not filename safe chars # filename = re.sub(rf"[{spacer}]{{2,}}", spacer, filename) # remove extra neighbouring (spacer)s