mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
unescape macros inside unnamed arg arrays
This commit is contained in:
@@ -224,6 +224,15 @@ export class SlashCommandClosure {
|
|||||||
?.replace(/\\\{/g, '{')
|
?.replace(/\\\{/g, '{')
|
||||||
?.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();
|
let abortResult = await this.testAbortController();
|
||||||
|
Reference in New Issue
Block a user