1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

Fixed coding standard nits

This commit is contained in:
Miha Lunar 2020-11-06 19:56:20 +01:00
parent 2bd9cc45fa
commit 1b226c7556

View File

@ -166,12 +166,16 @@ WikiParser.prototype.findNextMatch = function(rules,startPos) {
}; };
WikiParser.prototype.parseRule = function(rule) { WikiParser.prototype.parseRule = function(rule) {
var start = this.pos; var start = this.pos,
var blocks = rule.parse(); blocks = rule.parse();
for(var i=0; i<blocks.length; i++) { for(var i=0; i<blocks.length; i++) {
var block = blocks[i]; var block = blocks[i];
if (block.start !== undefined) block.start = start; if(block.start !== undefined) {
if (block.end !== undefined) block.end = this.pos; block.start = start;
}
if(block.end !== undefined) {
block.end = this.pos;
}
} }
return blocks; return blocks;
}; };