From 9ae0591e3f2c6fdf6b296454644153b96ee752ae Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Sun, 23 Jun 2024 11:30:34 -0400 Subject: [PATCH] indicate pipe, var and getvar command in replaceGetvar --- public/scripts/slash-commands/SlashCommandParser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/scripts/slash-commands/SlashCommandParser.js b/public/scripts/slash-commands/SlashCommandParser.js index ad176b80f..b07a4f2bf 100644 --- a/public/scripts/slash-commands/SlashCommandParser.js +++ b/public/scripts/slash-commands/SlashCommandParser.js @@ -524,7 +524,7 @@ export class SlashCommandParser { const startIdx = this.index - value.length + idx; const endIdx = this.index - value.length + idx + match.length; // store pipe - const pipeName = `_PARSER_${uuidv4()}`; + const pipeName = `_PARSER_PIPE_${uuidv4()}`; const storePipe = new SlashCommandExecutor(startIdx); { storePipe.end = endIdx; storePipe.command = this.commands['let']; @@ -540,14 +540,14 @@ export class SlashCommandParser { const getvar = new SlashCommandExecutor(startIdx); { getvar.end = endIdx; getvar.command = this.commands[cmd]; - getvar.name = 'cmd'; + getvar.name = cmd; const nameAss = new SlashCommandUnnamedArgumentAssignment(); nameAss.value = name; getvar.unnamedArgumentList = [nameAss]; this.closure.executorList.push(getvar); } // set to temp scoped var - const varName = `_PARSER_${uuidv4()}`; + const varName = `_PARSER_VAR_${uuidv4()}`; const setvar = new SlashCommandExecutor(startIdx); { setvar.end = endIdx; setvar.command = this.commands['let'];