Fix spacing on field join for empty suffix/prefix

This commit is contained in:
Wolfsblvt 2024-04-07 21:23:45 +02:00
parent 4a4296127c
commit f4fcbff17e
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ export function getGroupCharacterCards(groupId, characterId) {
// Also run the macro replacement on the actual content
value = customBaseChatReplace(value, fieldName, characterName);
return `${prefix}${separator}${value}${separator}${suffix}`;
return `${prefix ? prefix + separator : ''}${value}${suffix ? separator + suffix : ''}`;
}
const scenarioOverride = chat_metadata['scenario'];