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