Merge pull request #2923 from SillyTavern/fix-piping-split-unnamed-args
Fix piping not actually using/inputting an array for empty unnamed args
This commit is contained in:
commit
bc05c8de15
|
@ -508,6 +508,14 @@ export class SlashCommandClosure {
|
|||
return v;
|
||||
});
|
||||
}
|
||||
|
||||
value ??= '';
|
||||
|
||||
// Make sure that if unnamed args are split, it should always return an array
|
||||
if (executor.command.splitUnnamedArgument && !Array.isArray(value)) {
|
||||
value = [value];
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue