mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#1728 Allow zeros in {{pipe}} macro
This commit is contained in:
@ -1553,7 +1553,7 @@ async function executeSlashCommands(text, unescape = false) {
|
|||||||
value = substituteParams(value.trim());
|
value = substituteParams(value.trim());
|
||||||
|
|
||||||
if (/{{pipe}}/i.test(value)) {
|
if (/{{pipe}}/i.test(value)) {
|
||||||
value = value.replace(/{{pipe}}/i, pipeResult || '');
|
value = value.replace(/{{pipe}}/i, pipeResult ?? '');
|
||||||
}
|
}
|
||||||
|
|
||||||
result.args[key] = value;
|
result.args[key] = value;
|
||||||
|
Reference in New Issue
Block a user