mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
adding missing colon
This commit is contained in:
@@ -6036,7 +6036,7 @@ export function cleanUpMessage({ getMessage, isImpersonate, isContinue, displayI
|
|||||||
|
|
||||||
if (wrongName) {
|
if (wrongName) {
|
||||||
// If the message starts with the wrong name, delete the entire response
|
// If the message starts with the wrong name, delete the entire response
|
||||||
let startIndex = getMessage.indexOf(`${wrongName}`);
|
let startIndex = getMessage.indexOf(`${wrongName}:`);
|
||||||
if (startIndex === 0) {
|
if (startIndex === 0) {
|
||||||
getMessage = '';
|
getMessage = '';
|
||||||
console.debug(`Message started with the wrong name: "${wrongName}" - response was deleted.`);
|
console.debug(`Message started with the wrong name: "${wrongName}" - response was deleted.`);
|
||||||
|
Reference in New Issue
Block a user