diff options
author | Adrian Kummerlaender | 2015-08-19 18:30:24 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2015-08-19 18:30:24 +0200 |
commit | e1c314b081fce85c80d1df8788f84cc173ff0e14 (patch) | |
tree | f30f38a2265efd282c3bdc131b3638c9c7ae4db5 /src/command | |
parent | 0dde6e134fdfbd54a2d148875e58ef1355578c8c (diff) | |
download | MetaTerm-e1c314b081fce85c80d1df8788f84cc173ff0e14.tar MetaTerm-e1c314b081fce85c80d1df8788f84cc173ff0e14.tar.gz MetaTerm-e1c314b081fce85c80d1df8788f84cc173ff0e14.tar.bz2 MetaTerm-e1c314b081fce85c80d1df8788f84cc173ff0e14.tar.lz MetaTerm-e1c314b081fce85c80d1df8788f84cc173ff0e14.tar.xz MetaTerm-e1c314b081fce85c80d1df8788f84cc173ff0e14.tar.zst MetaTerm-e1c314b081fce85c80d1df8788f84cc173ff0e14.zip |
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.
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/commands.js | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |