mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-03 04:37:40 +01:00
fix REPLACE_GETVAR nesting issues
This commit is contained in:
parent
32ec6aac1c
commit
afb849cfb6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user