Skip to content

Commit

Permalink
Merge pull request #14640 from WebDev9000/replace-hashtags-in-filenames
Browse files Browse the repository at this point in the history
Add # to the invalid_filename_chars list
  • Loading branch information
AUTOMATIC1111 authored Jan 20, 2024
2 parents 0f2de4c + 47b52d9 commit 58a142b
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 @@ -321,7 +321,7 @@ def resize(im, w, h):
return res


invalid_filename_chars = '<>:"/\\|?*\n\r\t'
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 58a142b

Please sign in to comment.