1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +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) {
var start = this.pos;
var blocks = rule.parse();
var start = this.pos,
blocks = rule.parse();
for(var i=0; i<blocks.length; i++) {
var block = blocks[i];
if (block.start !== undefined) block.start = start;
if (block.end !== undefined) block.end = this.pos;
if(block.start !== undefined) {
block.start = start;
}
if(block.end !== undefined) {
block.end = this.pos;
}
}
return blocks;
};