unescape macros inside unnamed arg arrays

This commit is contained in:
LenAnderson 2024-05-19 06:23:19 -04:00
parent 48c075fb42
commit 94ee7167e0

View File

@ -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();