mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Revert "Replace macros in named args of boolean evaluation"
This reverts commit 6894b7ef72
.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import { chat_metadata, getCurrentChatId, saveSettingsDebounced, sendSystemMessage, substituteParams, system_message_types } from "../script.js";
|
import { chat_metadata, getCurrentChatId, saveSettingsDebounced, sendSystemMessage, system_message_types } from "../script.js";
|
||||||
import { extension_settings, saveMetadataDebounced } from "./extensions.js";
|
import { extension_settings, saveMetadataDebounced } from "./extensions.js";
|
||||||
import { executeSlashCommands, registerSlashCommand } from "./slash-commands.js";
|
import { executeSlashCommands, registerSlashCommand } from "./slash-commands.js";
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ function parseBooleanOperands(args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const stringLiteral = String(operand);
|
const stringLiteral = String(operand);
|
||||||
return substituteParams(stringLiteral) || '';
|
return stringLiteral || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
const left = getOperand(args.a || args.left || args.first || args.x);
|
const left = getOperand(args.a || args.left || args.first || args.x);
|
||||||
|
Reference in New Issue
Block a user