Skip to content

Commit

Permalink
Merge pull request #12327 from catboxanon/fix/filename-invalid-chars
Browse files Browse the repository at this point in the history
Add tab and carriage return to invalid filename chars
  • Loading branch information
AUTOMATIC1111 authored Aug 5, 2023
2 parents d2b842c + bcff763 commit e642636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def resize(im, w, h):
return res


invalid_filename_chars = '<>:"/\\|?*\n'
invalid_filename_chars = '<>:"/\\|?*\n\r\t'
invalid_filename_prefix = ' '
invalid_filename_postfix = ' .'
re_nonletters = re.compile(r'[\s' + string.punctuation + ']+')
Expand Down

0 comments on commit e642636

Please sign in to comment.