Code command whitespace fix (#28048)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
70dc4888fd
Коммит
d7a63b2a71
@@ -58,11 +58,7 @@ export function executeCommand(message: string, args: CommandArgs): ActionFuncAs
|
|||||||
cmdLength = msg.length;
|
cmdLength = msg.length;
|
||||||
}
|
}
|
||||||
const cmd = msg.substring(0, cmdLength).toLowerCase();
|
const cmd = msg.substring(0, cmdLength).toLowerCase();
|
||||||
if (cmd === '/code') {
|
msg = cmd + ' ' + msg.substring(cmdLength, msg.length).trim();
|
||||||
msg = cmd + ' ' + msg.substring(cmdLength, msg.length).trimEnd();
|
|
||||||
} else {
|
|
||||||
msg = cmd + ' ' + msg.substring(cmdLength, msg.length).trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add track event for certain slash commands
|
// Add track event for certain slash commands
|
||||||
const commandsWithTelemetry = [
|
const commandsWithTelemetry = [
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user