From e1c314b081fce85c80d1df8788f84cc173ff0e14 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 19 Aug 2015 18:30:24 +0200 Subject: Prevent trailing whitespace from resetting configuration values Trailing whitespace was falsely recognized as a separate argument and as such led to resetting configuration values without obvious cause. --- src/command/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/commands.js b/src/command/commands.js index 8fa369a..d5b9787 100644 --- a/src/command/commands.js +++ b/src/command/commands.js @@ -2,7 +2,7 @@ function execute(output, command) { var notImplemented = function(name) { output.error('"' + name + '"' + ' is not implemented.'); }; - var args = command.split(' '); + var args = command.trim().split(' '); try { var closure = eval(args[0]); -- cgit v1.2.3