#1728 Allow zeros in {{pipe}} macro

This commit is contained in:
Cohee 2024-01-24 21:19:29 +02:00
parent e537def312
commit 55984a59bb

View File

@ -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;