mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
Fix bug processing empty string tokens
This commit is contained in:
parent
bd86723b72
commit
8b2afd1cc2
@ -105,7 +105,7 @@ Commander.prototype.getTokensUntilCommand = function(callback) {
|
|||||||
if(err) {
|
if(err) {
|
||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
if(!data || data.substr(0,2) === "--") {
|
if(data === null || data.substr(0,2) === "--") {
|
||||||
return callback(null,tokens);
|
return callback(null,tokens);
|
||||||
} else {
|
} else {
|
||||||
self.getNextToken(function(err,data) {
|
self.getNextToken(function(err,data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user