broaden sanitization slightly

feature-unify_handlers
Tomáš Mládek 2019-05-22 15:24:16 +02:00
parent bfbc225d0e
commit 89db7e885a
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class DelojzaBot:
def sanitize(filepath):
if filepath is None:
return None
return re.sub(r'[^\w.-]', '_', filepath)
return re.sub(r'[^\w.()\[\]{}#-]', '_', filepath)
def tag_file(self, filepath, message, info=None):
if info is None: