adding missing colon

This commit is contained in:
qvink
2025-03-22 16:30:54 -06:00
parent 9a3e3433c7
commit 900575ee1a

View File

@@ -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.`);