Allow single quotes in generated SD prompts

This commit is contained in:
Cohee 2024-02-14 15:39:56 +02:00
parent e3102bb26f
commit 6ab918605e
1 changed files with 1 additions and 1 deletions

View File

@ -1676,7 +1676,7 @@ function processReply(str) {
str = str.replaceAll('“', '');
str = str.replaceAll('.', ',');
str = str.replaceAll('\n', ', ');
str = str.replace(/[^a-zA-Z0-9,:()]+/g, ' '); // Replace everything except alphanumeric characters and commas with spaces
str = str.replace(/[^a-zA-Z0-9,:()']+/g, ' '); // Replace everything except alphanumeric characters and commas with spaces
str = str.replace(/\s+/g, ' '); // Collapse multiple whitespaces into one
str = str.trim();