mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix REPLACE_GETVAR nesting issues
This commit is contained in:
@ -645,6 +645,7 @@ export class SlashCommandParser {
|
||||
closure.abortController = this.abortController;
|
||||
closure.debugController = this.debugController;
|
||||
this.scope = closure.scope;
|
||||
const oldClosure = this.closure;
|
||||
this.closure = closure;
|
||||
this.discardWhitespace();
|
||||
while (this.testNamedArgument()) {
|
||||
@ -698,6 +699,7 @@ export class SlashCommandParser {
|
||||
}
|
||||
closureIndexEntry.end = this.index - 1;
|
||||
this.scope = closure.scope.parent;
|
||||
this.closure = oldClosure ?? closure;
|
||||
return closure;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user