broaden sanitization slightly

This commit is contained in:
Tomáš Mládek 2019-05-22 15:24:16 +02:00
parent bfbc225d0e
commit 89db7e885a

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: