mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 21:41:32 +01:00
unescape macros inside unnamed arg arrays
This commit is contained in:
parent
48c075fb42
commit
94ee7167e0
@ -224,6 +224,15 @@ export class SlashCommandClosure {
|
||||
?.replace(/\\\{/g, '{')
|
||||
?.replace(/\\\}/g, '}')
|
||||
;
|
||||
} else if (Array.isArray(value)) {
|
||||
value = value.map(v=>{
|
||||
if (typeof v == 'string') {
|
||||
return v
|
||||
?.replace(/\\\{/g, '{')
|
||||
?.replace(/\\\}/g, '}');
|
||||
}
|
||||
return v;
|
||||
});
|
||||
}
|
||||
|
||||
let abortResult = await this.testAbortController();
|
||||
|
Loading…
Reference in New Issue
Block a user