mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-17 23:05:11 -05:00
Merge pull request #1370 from fernandog/special_char_tm
Remove trademark from filename
This commit is contained in:
commit
dc6e4c6816
@ -190,6 +190,7 @@ def sanitizeFileName(name):
|
||||
# remove bad chars from the filename
|
||||
name = re.sub(r'[\\/\*]', '-', name)
|
||||
name = re.sub(r'[:"<>|?]', '', name)
|
||||
name = re.sub(ur'\u2122', '', name) # Trade Mark Sign
|
||||
|
||||
# remove leading/trailing periods and spaces
|
||||
name = name.strip(' .')
|
||||
|
Loading…
Reference in New Issue
Block a user