Fix markdown parsing

This commit is contained in:
Hillel Coren 2017-06-29 15:15:54 +03:00
parent 2b1b625d12
commit 93c9d10504
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1159,7 +1159,7 @@ NINJA.parseRegExp = function(val, regExpStr, formatter, groupText)
NINJA.parseRegExpLine = function(line, regExp, formatter, groupText) NINJA.parseRegExpLine = function(line, regExp, formatter, groupText)
{ {
var parts = []; var parts = [];
var lastIndex = 0; var lastIndex = -1;
while (match = regExp.exec(line)) { while (match = regExp.exec(line)) {
if (match.index > lastIndex) { if (match.index > lastIndex) {