From 8b2afd1cc23dccd87225916c8fc867ddd7f31da9 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 20 Oct 2024 12:55:11 +0100 Subject: [PATCH] Fix bug processing empty string tokens --- core/modules/commander.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/commander.js b/core/modules/commander.js index f99fe70f1..24d6ff6d5 100644 --- a/core/modules/commander.js +++ b/core/modules/commander.js @@ -105,7 +105,7 @@ Commander.prototype.getTokensUntilCommand = function(callback) { if(err) { return callback(err); } - if(!data || data.substr(0,2) === "--") { + if(data === null || data.substr(0,2) === "--") { return callback(null,tokens); } else { self.getNextToken(function(err,data) {