broaden sanitization slightly
This commit is contained in:
parent
bfbc225d0e
commit
89db7e885a
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue