mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
"acceptsMultiple" should always return array
This commit is contained in:
parent
2444e9be43
commit
d231b7f5f4
@ -417,8 +417,8 @@ export class SlashCommandClosure {
|
|||||||
currentValue.push(value);
|
currentValue.push(value);
|
||||||
args[name] = currentValue;
|
args[name] = currentValue;
|
||||||
} else {
|
} else {
|
||||||
// If there is nothing in there, just assign it as singular value, until multiple values are found
|
// If there is nothing in there, we create an array with that singular value
|
||||||
args[name] = value;
|
args[name] = [value];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
args[name] !== undefined && console.debug(`Named argument assigned multiple times: ${name}`);
|
args[name] !== undefined && console.debug(`Named argument assigned multiple times: ${name}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user