Perform macro substitution while updating message.
This addresses 3 issues: 1. Prompt bias string was not removed from the text of the edited message. 2. Macro substitition was not performed in the prompt bias string. 3. Macro substitution was not performed in the edited message text.
This commit is contained in:
parent
29c4334c46
commit
7885f19e86
|
@ -5967,7 +5967,11 @@ function updateMessage(div) {
|
||||||
text = text.trim();
|
text = text.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
const bias = extractMessageBias(text);
|
const bias = substituteParams(extractMessageBias(text));
|
||||||
|
text = substituteParams(text);
|
||||||
|
if (bias) {
|
||||||
|
text = removeMacros(text);
|
||||||
|
}
|
||||||
mes['mes'] = text;
|
mes['mes'] = text;
|
||||||
if (mes['swipe_id'] !== undefined) {
|
if (mes['swipe_id'] !== undefined) {
|
||||||
mes['swipes'][mes['swipe_id']] = text;
|
mes['swipes'][mes['swipe_id']] = text;
|
||||||
|
|
Loading…
Reference in New Issue