Code command whitespace fix (#28048)

This commit is contained in:
Arya Khochare
2024-09-09 08:21:06 +02:00
committed by GitHub
parent 70dc4888fd
commit d7a63b2a71
+1 -5
View File
@@ -58,11 +58,7 @@ export function executeCommand(message: string, args: CommandArgs): ActionFuncAs
cmdLength = msg.length;
}
const cmd = msg.substring(0, cmdLength).toLowerCase();
if (cmd === '/code') {
msg = cmd + ' ' + msg.substring(cmdLength, msg.length).trimEnd();
} else {
msg = cmd + ' ' + msg.substring(cmdLength, msg.length).trim();
}
msg = cmd + ' ' + msg.substring(cmdLength, msg.length).trim();
// Add track event for certain slash commands
const commandsWithTelemetry = [