Fix spacing on field join for empty suffix/prefix
This commit is contained in:
parent
4a4296127c
commit
f4fcbff17e
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue