Commit 85d0c2c2 authored by Ryan Wang's avatar Ryan Wang Committed by Saturnino Abril
Browse files

Trim extra whitespace in commands (#1175)

parent 036d576c
......@@ -58,7 +58,7 @@ export function executeCommand(message, args, success, error) {
cmdLength = msg.length;
}
const cmd = msg.substring(0, cmdLength).toLowerCase();
msg = cmd + msg.substring(cmdLength, msg.length);
msg = cmd + ' ' + msg.substring(cmdLength, msg.length).trim();
switch (cmd) {
case '/search':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment