Skip to content

Commit

Permalink
Merge pull request #123 from journey-ad/fix-1
Browse files Browse the repository at this point in the history
fix error when filename contains `\t`
  • Loading branch information
HFrost0 authored Apr 20, 2023
2 parents 05cf036 + d7b3b71 commit 8fdcb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bilix/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def replace_illegal(s: str):
"""strip, unescape html and replace os illegal character in s"""
s = s.strip()
s = html.unescape(s) # handel & "...
s = re.sub(r"[/\\:*?\"<>|\n]", '', s) # replace illegal filename character
s = re.sub(r"[/\\:*?\"<>|\n\t]", '', s) # replace illegal filename character
return s


Expand Down

0 comments on commit 8fdcb31

Please sign in to comment.