mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix spacing on field join for empty suffix/prefix
This commit is contained in:
@@ -373,7 +373,7 @@ export function getGroupCharacterCards(groupId, characterId) {
|
|||||||
// Also run the macro replacement on the actual content
|
// Also run the macro replacement on the actual content
|
||||||
value = customBaseChatReplace(value, fieldName, characterName);
|
value = customBaseChatReplace(value, fieldName, characterName);
|
||||||
|
|
||||||
return `${prefix}${separator}${value}${separator}${suffix}`;
|
return `${prefix ? prefix + separator : ''}${value}${suffix ? separator + suffix : ''}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const scenarioOverride = chat_metadata['scenario'];
|
const scenarioOverride = chat_metadata['scenario'];
|
||||||
|
Reference in New Issue
Block a user