From fb97665f50003a95925155be9c1f89c8e155d65e Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Thu, 11 Apr 2024 22:18:41 -0400 Subject: [PATCH] move shit around --- public/scripts/slash-commands/SlashCommandParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/slash-commands/SlashCommandParser.js b/public/scripts/slash-commands/SlashCommandParser.js index aa26cb2cb..3b6d1e65e 100644 --- a/public/scripts/slash-commands/SlashCommandParser.js +++ b/public/scripts/slash-commands/SlashCommandParser.js @@ -300,8 +300,8 @@ export class SlashCommandParser { parseCommand() { const start = this.index; const cmd = new SlashCommandExecutor(start); - this.take(); // discard "/" this.commandIndex.push(cmd); + this.take(); // discard "/" while (!/\s/.test(this.char) && !this.testCommandEnd()) cmd.name += this.take(); // take chars until whitespace or end this.discardWhitespace(); if (this.verifyCommandNames && !this.commands[cmd.name]) throw new SlashCommandParserError(`Unknown command at position ${this.index - cmd.name.length - 2}: "/${cmd.name}"`, this.text, this.index - cmd.name.length);