diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-20 07:29:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 07:29:42 +0000 |
commit | 58a142b56b0911a8f308982dd840924a94125e43 (patch) | |
tree | 5bb37308537cb97c15e7ef6dd730a94fd0784582 | |
parent | 0f2de4cfbe96ffcf4fc1e7191b02b7f86395b5d5 (diff) | |
parent | 47b52d9b28aaabb603358fae5d9b824c49aa627b (diff) | |
download | stable-diffusion-webui-gfx803-58a142b56b0911a8f308982dd840924a94125e43.tar.gz stable-diffusion-webui-gfx803-58a142b56b0911a8f308982dd840924a94125e43.tar.bz2 stable-diffusion-webui-gfx803-58a142b56b0911a8f308982dd840924a94125e43.zip |
Merge pull request #14640 from WebDev9000/replace-hashtags-in-filenames
Add # to the invalid_filename_chars list
-rw-r--r-- | modules/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/images.py b/modules/images.py index 87a7bf22..b6f2358c 100644 --- a/modules/images.py +++ b/modules/images.py @@ -321,7 +321,7 @@ def resize_image(resize_mode, im, width, height, upscaler_name=None): 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 + ']+')
|