trello-full-backup
trello-full-backup copied to clipboard
Trello Card Name sanitisation not working properly on Windows
Card names that contain the character "
are not sanitised, which causes an error when calling mkdir
on windows. (Windows 10 in my case, running the script installed via pip)
A simple fix would be to add "
in the regex in line 46 in backup.py like so:
return re.sub(r'[<>:\/\|\?\*\'"]', '_', name)[:FILE_NAME_MAX_LENGTH]
Test run on my system worked fine with this fix.
Cheers
need to add also \\
return re.sub(r'[<>:\/\|\?\*\'"\\]', '_', name)[:FILE_NAME_MAX_LENGTH]
otherwise i get eg.:
Traceback (most recent call last):
File "c:\anaconda3\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\anaconda3\scripts\trello-full-backup.exe_main.py", line 7, in