mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
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:
@ -508,6 +508,14 @@ export class SlashCommandClosure {
|
|||||||
return v;
|
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;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user