mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 19:47:20 +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) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user