mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
set parser flag without explicit state to "on"
This commit is contained in:
@ -495,7 +495,7 @@ export class SlashCommandParser {
|
||||
this.take(13); // discard "/parser-flag "
|
||||
const [flag, state] = this.parseUnnamedArgument()?.split(/\s+/) ?? [null, null];
|
||||
if (Object.keys(PARSER_FLAG).includes(flag)) {
|
||||
this.flags[PARSER_FLAG[flag]] = isTrueBoolean(state);
|
||||
this.flags[PARSER_FLAG[flag]] = isTrueBoolean(state ?? 'on');
|
||||
}
|
||||
cmd.end = this.index;
|
||||
}
|
||||
|
Reference in New Issue
Block a user